From: Ben Klang Date: Mon, 17 May 2010 21:31:04 +0000 (-0400) Subject: Skeleton: syntax fix when throwing exceptions X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=fc8ddaebe43b902ecc4ea85d9c65e48b2c443eea;p=horde.git Skeleton: syntax fix when throwing exceptions --- diff --git a/skeleton/lib/Driver/Sql.php b/skeleton/lib/Driver/Sql.php index 9e86cef79..d8697bf75 100644 --- a/skeleton/lib/Driver/Sql.php +++ b/skeleton/lib/Driver/Sql.php @@ -92,12 +92,12 @@ class Skeleton_Driver_Sql extends Skeleton_Driver $result = $this->_db->query($query, $values); if (is_a($result instanceof PEAR_Error)) { - throw Horde_Exception_Prior($result); + throw new Horde_Exception_Prior($result); } $row = $result->fetchRow(DB_FETCHMODE_ASSOC); if ($row instanceof PEAR_Error) { - throw Horde_Exception_Prior($row); + throw new Horde_Exception_Prior($row); } /* Store the retrieved values in the foo variable. */ @@ -141,7 +141,7 @@ class Skeleton_Driver_Sql extends Skeleton_Driver $this->_write_db = DB::connect($this->_params, array('persistent' => !empty($this->_params['persistent']))); if ($this->_write_db instanceof PEAR_Error) { - throw Horde_Exception_Prior($this->_write_db); + throw new Horde_Exception_Prior($this->_write_db); } // Set DB portability options. @@ -160,7 +160,7 @@ class Skeleton_Driver_Sql extends Skeleton_Driver $this->_db = DB::connect($params, array('persistent' => !empty($params['persistent']))); if ($this->_db instanceof PEAR_Error) { - throw Horde_Exception_Prior($this->_db); + throw new Horde_Exception_Prior($this->_db); } // Set DB portability options.