diff --git a/AUTOCONFIG/AutoconfigHandler.php b/AUTOCONFIG/AutoconfigHandler.php index af3b4ce9..20c29fde 100644 --- a/AUTOCONFIG/AutoconfigHandler.php +++ b/AUTOCONFIG/AutoconfigHandler.php @@ -261,7 +261,7 @@ class AutoconfigHandler extends PFAHandler { public function db_assoc($sth) { if ( empty( $sth ) ) { - throw( "No statement handler was provided." ); + throw new Exception( "No statement handler was provided." ); } try { return( $sth->fetch( PDO::FETCH_ASSOC ) ); @@ -273,7 +273,7 @@ class AutoconfigHandler extends PFAHandler { public function db_fetchall($sth) { if ( empty( $sth ) ) { - throw( "No statement handler was provided." ); + throw new Exception( "No statement handler was provided." ); } try { @@ -286,7 +286,7 @@ class AutoconfigHandler extends PFAHandler { public function db_rows($sth) { if ( empty( $sth ) ) { - throw( "No statement handler was provided." ); + throw new Exception( "No statement handler was provided." ); } try { return( $sth->rowCount() );