From f7ec5612cfff06c564ec33a08e598977265fca7c Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Thu, 28 Jun 2012 00:01:50 -0400 Subject: [PATCH] Fix DB error logging bug --- include/mysql.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/mysql.php b/include/mysql.php index 71ea2f073..06489242a 100644 --- a/include/mysql.php +++ b/include/mysql.php @@ -88,9 +88,9 @@ } if(!$result && $ost) { //error reporting - $alert='['.$query.']'."\n\n".db_error(); - $ost->logError('DB Error #'.db_errno(), $alert, ($ost->alertONSQLError())); - //echo $alert; #uncomment during debuging or dev. + $msg='['.$query.']'."\n\n".db_error(); + $ost->logDBError('DB Error #'.db_errno(), $msg); + //echo $msg; #uncomment during debuging or dev. } return $result; -- GitLab