summaryrefslogtreecommitdiff
path: root/cli/db-restore.php
diff options
context:
space:
mode:
Diffstat (limited to 'cli/db-restore.php')
-rwxr-xr-xcli/db-restore.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/db-restore.php b/cli/db-restore.php
index 6ea6f4a7d..32f43708f 100755
--- a/cli/db-restore.php
+++ b/cli/db-restore.php
@@ -34,7 +34,7 @@ try {
$_SESSION['bd_error'] = $ex->getMessage();
}
if (!$ok) {
- fail('FreshRSS database error: ' . (empty($_SESSION['bd_error']) ? 'Unknown error' : $_SESSION['bd_error']));
+ fail('FreshRSS database error: ' . (is_string($_SESSION['bd_error'] ?? null) ? $_SESSION['bd_error'] : 'Unknown error'));
}
foreach (listUsers() as $username) {