From 62ad6dde6769aee4f83840fed8a1ef5ffbd08ed1 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Mon, 4 Mar 2013 10:11:32 +0000 Subject: [PATCH] Correction to previous condition swapping Put the isset bit before the comparison bit, but made a mistake with the parens bit. This is how it should be. --- lib/file-control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/file-control.php b/lib/file-control.php index 7ef8d68..dc11eca 100644 --- a/lib/file-control.php +++ b/lib/file-control.php @@ -249,7 +249,7 @@ if ($_GET['action']=="save") { if (isset($_POST['contents'])) { if (!$demoMode && ((file_exists($file) && is_writable($file)) || isset($_POST['newFileName']) && $_POST['newFileName']!="")) { $filemtime = $serverType=="Linux" ? filemtime($file) : "1000000"; - if (!(isset($_GET['fileMDT'])||$filemtime==$_GET['fileMDT'])) { + if (!(isset($_GET['fileMDT']))||$filemtime==$_GET['fileMDT']) { $fh = fopen($file, 'w') or die("Sorry, cannot save"); fwrite($fh, $_POST['contents']); fclose($fh);