From f44c3c6939865b5aa96b1c0412117df5aa5c6321 Mon Sep 17 00:00:00 2001 From: Isaac Bennetch Date: Sat, 10 Nov 2018 23:33:36 -0500 Subject: [PATCH] When logging with AuthLog to syslog, successful login messages were not logged even if $cfg['AuthLogSuccess'] was true. Fixes #14672 Signed-off-by: Isaac Bennetch --- libraries/classes/Logging.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/classes/Logging.php b/libraries/classes/Logging.php index 1ad9b1bda4..e48e9e2525 100644 --- a/libraries/classes/Logging.php +++ b/libraries/classes/Logging.php @@ -80,7 +80,7 @@ class Logging } $message = self::getLogMessage($user, $status); if ($log_file == 'syslog') { - if (function_exists('syslog') && $status != 'ok') { + if (function_exists('syslog')) { @openlog('phpMyAdmin', LOG_NDELAY | LOG_PID, LOG_AUTHPRIV); @syslog(LOG_WARNING, $message); closelog();