[-] CORE : Fix warning when result from query is not a ressource
This commit is contained in:
@@ -68,7 +68,12 @@ class MySQLCore extends Db
|
||||
*/
|
||||
public function nextRow($result = false)
|
||||
{
|
||||
return mysql_fetch_assoc($result ? $result : $this->result);
|
||||
$return = false;
|
||||
if(is_resource($result) && $result)
|
||||
$return = mysql_fetch_assoc($result);
|
||||
elseif(is_resource($this->_result) && $this->_result)
|
||||
$return = mysql_fetch_assoc($this->_result);
|
||||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user