Skip to content

Commit

Permalink
Fix fetch return, should always be an array
Browse files Browse the repository at this point in the history
  • Loading branch information
brendo committed May 24, 2016
1 parent a18d835 commit 45cc9f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions symphony/lib/toolkit/class.database.php
Expand Up @@ -75,7 +75,7 @@ class Database
/**
* @var array|boolean
*/
protected $_lastResult = null;
protected $_lastResult = array();

/**
* @var string
Expand Down Expand Up @@ -230,7 +230,7 @@ public function __destruct()
public function flush()
{
$this->_result = null;
$this->_lastResult = null;
$this->_lastResult = array();
$this->_lastQuery = null;
$this->_lastQueryHash = null;
}
Expand Down

0 comments on commit 45cc9f5

Please sign in to comment.