aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/database.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/database.php')
-rw-r--r--engine/lib/database.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php
index c28673b48..158738185 100644
--- a/engine/lib/database.php
+++ b/engine/lib/database.php
@@ -130,12 +130,13 @@
$resultarray[] = $row;
}
}
- if (empty($resultarray)) {
- return false;
- }
if (mysql_errno($dblink))
throw new DatabaseException(mysql_error($dblink));
+
+ if (empty($resultarray)) {
+ return false;
+ }
return $resultarray;
}