From 0115b655bdcb294550548149e056f695101ba1d4 Mon Sep 17 00:00:00 2001 From: Sandor Nagy Date: Thu, 27 Jun 2019 00:26:36 +0200 Subject: [PATCH] lib/log.php broke after switch to PDO DB abstraction --- lib/log.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/log.php b/lib/log.php index ae4253c0..43e753f0 100644 --- a/lib/log.php +++ b/lib/log.php @@ -48,7 +48,7 @@ function logStart(&$oDB, $sType = '', $sQuery = '', $aLanguageList = array()) $hLog[3] ))); $sSQL .= ')'; - $oDB->query($sSQL); + $oDB->exec($sSQL); } return $hLog; @@ -67,7 +67,7 @@ function logEnd(&$oDB, $hLog, $iNumResults) $sSQL .= ' where starttime = '.$oDB->getDBQuoted($hLog[0]); $sSQL .= ' and ipaddress = '.$oDB->getDBQuoted($hLog[1]); $sSQL .= ' and query = '.$oDB->getDBQuoted($hLog[2]); - $oDB->query($sSQL); + $oDB->exec($sSQL); } if (CONST_Log_File) { -- 2.45.1