From e4abfd3ede56a0abbdfa1b27da03e450a0ffc350 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Wed, 25 Mar 2020 19:37:10 +0000 Subject: [PATCH] fix exception throwing --- AUTOCONFIG/AutoconfigHandler.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() );