Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit aadb2cf

Browse files
committed
Fix typo in write2 function that was preventing correct Log In logging for WebUI.
1 parent fb71bdc commit aadb2cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/plugins/log.sql/class.sqlLogDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ public function formatXmlLogItem($node, $icon, $dateattrib, $filename, $remote_i
325325
*/
326326
public function write2($level, $ip, $user, $source, $prefix, $message)
327327
{
328-
if($prefix == "Log In" && $message="context=API"){
328+
if($prefix == "Log In" && $message=="context=API"){
329329
// Limit the number of logs
330330
$test = dibi::query('SELECT [logdate] FROM [ajxp_log] WHERE [user]=%s AND [message]=%s AND [params]=%s ORDER BY [logdate] DESC %lmt %ofs', $user, $prefix, $message, 1, 0);
331331
$lastInsert = $test->fetchSingle();

0 commit comments

Comments
 (0)