lib/log.php broke after switch to PDO DB abstraction

This commit is contained in:
Sandor Nagy
2019-06-27 00:26:36 +02:00
parent e8f1463cc2
commit 0115b655bd

View File

@@ -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) {