This commit is contained in:
Bruno Rybársky 2024-04-25 23:35:43 +02:00
parent f5c70d0be2
commit cd240b7d9f

@ -191,10 +191,10 @@ function fileExists(int $fileId, bool $onlyMine = true): bool|string
$stmtfileexists->bind_param('i', $fileId);
}
$filePath = "";
$id = 0;
$id = -1;
$stmtfileexists->bind_result($id, $filePath);
$stmtfileexists->execute();
if ($stmtfileexists->num_rows > 0){
if ($id != -1){
return $filePath;
}
else {