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.
This commit is contained in:
Matt Pass
2013-03-04 10:11:32 +00:00
parent 8750fe7a43
commit 62ad6dde67

View File

@@ -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);