Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ellite committed Apr 26, 2024
1 parent dc6e5df commit 9cc1dc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions endpoints/db/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
session_start();

$result = $db->query("SELECT COUNT(*) as count FROM user");
$row = $result->fetch_assoc();
if ($row['count'] == 0) {
$row = $result->fetchArray(SQLITE3_NUM);
if ($row[0] == 0) {
die(json_encode([
"success" => false,
"message" => translate('session_expired', $i18n)
Expand Down

0 comments on commit 9cc1dc8

Please sign in to comment.