diff --git a/symphony/lib/toolkit/class.mysql.php b/symphony/lib/toolkit/class.mysql.php
index <HASH>..<HASH> 100644
--- a/symphony/lib/toolkit/class.mysql.php
+++ b/symphony/lib/toolkit/class.mysql.php
@@ -326,7 +326,8 @@
 	        elseif($this->_lastResult == NULL){
 	            return array();
 	        }
-				
+
+			$newArray = array();
 	        foreach ($this->_lastResult as $row){
 	            $newArray[] = get_object_vars($row);
 	        }
In case of mysql->query() returning empty array, fetch() was returning NULL. Initialize  to fix that.