]> source.dussan.org Git - nextcloud-server.git/commitdiff
changed the argument to false for getValue , reformated else statement
authorAxel Roenn <axel@mpim-bonn.mpg.de>
Thu, 10 Oct 2013 12:15:13 +0000 (14:15 +0200)
committerAxel Roenn <axel@mpim-bonn.mpg.de>
Thu, 10 Oct 2013 12:15:13 +0000 (14:15 +0200)
lib/base.php

index e8a4d3f87ad303b725cccbc64427d18c2d8be6bf..cceb82ef47ab3e9305c6b420efa5235d4493691b 100644 (file)
@@ -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);
                        }