diff --git a/zayavka.php b/zayavka.php index cf19bcf..b0fcb15 100644 --- a/zayavka.php +++ b/zayavka.php @@ -646,7 +646,7 @@ VALUES ("?s","?s",?i,?i,?i,"?s","?s",?i,?i,?i,?i)', $zay = new zayavka; header("Cache-Control: no-cache"); -if ($_POST['open']) { +if (!empty($_POST['open'])) { $f = fopen("/tmp/zayavka/" . $user['id'] . ".txt", "w+"); fputs($f, time()); fclose($f);