From: Axel Roenn Date: Thu, 10 Oct 2013 12:15:13 +0000 (+0200) Subject: changed the argument to false for getValue , reformated else statement X-Git-Tag: v6.0.0alpha2~39^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9b0454380ccef34368a0a5227857788877722085;p=nextcloud-server.git changed the argument to false for getValue , reformated else statement --- diff --git a/lib/base.php b/lib/base.php index e8a4d3f87ad..cceb82ef47a 100644 --- a/lib/base.php +++ b/lib/base.php @@ -730,11 +730,10 @@ class OC { // Someone wants to log in : } elseif (OC::tryFormLogin()) { $error[] = 'invalidpassword'; - if ( OC_Config::getValue('log_authfailip', '') ) { + if ( OC_Config::getValue('log_authfailip', false) ) { OC_Log::write('core', 'Login failed: user \''.$_POST["user"].'\' , wrong password, IP:'.$_SERVER['REMOTE_ADDR'], OC_Log::WARN); - } - else { + } else { OC_Log::write('core', 'Login failed: user \''.$_POST["user"].'\' , wrong password, IP:set log_authfailip=true in conf', OC_Log::WARN); }