Fixed exception throwing conditions

This commit is contained in:
Timothy Warren 2012-03-07 11:32:20 -05:00
parent 80946c2575
commit 4acf07da4c
1 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ class firebird extends DB_PDO {
// Throw the error as a exception
// if there is one
if ( ! is_resource($this->statement))
if ($this->statement === FALSE)
{
throw new PDOException(ibase_errmsg());
die();
@ -166,7 +166,7 @@ class firebird extends DB_PDO {
$this->statement = @ibase_prepare($query);
// Throw the error as an exception
if ( ! is_resource($this->statement))
if ($this->statement === FALSE)
{
throw new PDOException(ibase_errmsg());
die();