From 659c01ccc3ef7db6a0e92e7a25fdcdc76695830d Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Fri, 11 Jul 2014 07:37:27 +0200 Subject: [PATCH] initialize intErrorCode if no Error occured --- include/dba_pdo.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dba_pdo.php b/include/dba_pdo.php index 7cd8c638e7..eed9ea1251 100644 --- a/include/dba_pdo.php +++ b/include/dba_pdo.php @@ -126,6 +126,7 @@ class dba { # bad workaround to emulate the bizzare behavior of mysql_query if(in_array($strSQLType, array('INSERT', 'UPDATE', 'DELETE', 'CREATE', 'DROP', 'SET'))) $result = true; + $intErrorCode = false; } catch (\Exception $objException) { $result = false;