fixed ret value on eval
This commit is contained in:
@ -60,11 +60,10 @@ class MongoStatement extends DbStatement
|
||||
if (!$this->result) {
|
||||
return false;
|
||||
}
|
||||
if (isset($this->result['retval'])) {
|
||||
if (is_array($this->result) && isset($this->result['retval'])) {
|
||||
return $this->result['retval'];
|
||||
}
|
||||
|
||||
$row = false;
|
||||
switch ($style) {
|
||||
case Db::FETCH_OBJ:
|
||||
$row = $this->fetchObject();
|
||||
|
Reference in New Issue
Block a user