This commit is contained in:
Bruno Rybársky 2024-04-25 23:30:34 +02:00
parent df0975313d
commit d96f74096b

@ -194,11 +194,11 @@ function fileExists(int $fileId, bool $onlyMine = true): bool|string
$stmtfileexists->bind_result($filePath); $stmtfileexists->bind_result($filePath);
$stmtfileexists->execute(); $stmtfileexists->execute();
if ($stmtfileexists->num_rows > 0){ if ($stmtfileexists->num_rows > 0){
echo "preco1";
return $filePath; return $filePath;
} }
else { else {
echo "preco2"; echo $stmtfileexists->error;
echo $query;
return false; return false;
} }
} }