Skip to content

Commit

Permalink
Fix the db-> exists check.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdamien committed Jun 18, 2021
1 parent 5c40e87 commit 3b50b08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/core/DB.php
Expand Up @@ -134,7 +134,7 @@ function exists($table, $values, &$result = null) {
$q = "SELECT * FROM $table WHERE {$where} LIMIT 1";
$result = $this->execute($q, $params);

return !is_null($result);
return count($result) > 0;
}

function getLastError() {
Expand Down

0 comments on commit 3b50b08

Please sign in to comment.