diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/database.php | 7 |
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;
}
|