Fail log was not written when root directory was read only.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 25 Dec 2014 18:57:27 +0000 (19:57 +0100)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 28 Dec 2014 18:27:34 +0000 (19:27 +0100)
includes/session.inc

index 697bb48da6823fed173a4c44d391f7715abe1d2c..0bddc33d4e2a8673df6992d4f7de3822ce88bc73 100644 (file)
@@ -219,7 +219,7 @@ function write_login_filelog($login, $result)
 
        $filename = $path_to_root."/tmp/faillog.php";
 
-       if ((!file_exists($filename) && is_writable($path_to_root)) || is_writable($filename))
+       if ((!file_exists($filename) && is_writable($path_to_root.'/tmp')) || is_writable($filename))
        {
                file_put_contents($filename, $msg);
        }