From bddeb141b3bca07b25c3d23e207adbaed7e94e4e Mon Sep 17 00:00:00 2001 From: icewing Date: Wed, 12 Mar 2008 12:15:21 +0000 Subject: Marcus Povey * BUGFIX: get_data now catches mysql_errors git-svn-id: https://code.elgg.org/elgg/trunk@186 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/database.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engine/lib') 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; } -- cgit v1.2.3