From 22be070331d6377286de860c9038b2d79a1e8717 Mon Sep 17 00:00:00 2001 From: lopar Date: Fri, 21 Jun 2019 21:56:59 +0300 Subject: [PATCH] define variables --- zayavka.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);