From 4acf07da4c1cb57868c2e5152e8b8fd3902caae3 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Wed, 7 Mar 2012 11:32:20 -0500 Subject: [PATCH] Fixed exception throwing conditions --- sys/databases/firebird-ibase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/databases/firebird-ibase.php b/sys/databases/firebird-ibase.php index 815510c..cbd5135 100644 --- a/sys/databases/firebird-ibase.php +++ b/sys/databases/firebird-ibase.php @@ -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();