1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-13 17:44:11 +02:00

Avoid error handler invocation

This commit is contained in:
Ondrej Brablc
2014-02-20 18:47:35 +01:00
committed by David Grudl
parent fa5b7678f4
commit d75e605645
2 changed files with 1 additions and 3 deletions

View File

@@ -457,7 +457,7 @@ class DibiMySqliDriver extends DibiObject implements IDibiDriver, IDibiResultDri
public function getResultResource()
{
$this->autoFree = FALSE;
return @$this->resultSet->type === NULL ? NULL : $this->resultSet;
return $this->resultSet === NULL || $this->resultSet->type === NULL ? NULL : $this->resultSet;
}
}