fix: don't show errors and fix that empty value

This commit is contained in:
Martin Ambrus
2017-11-02 00:53:46 +01:00
parent 95438e0fe7
commit d9da11ef4b
+1 -2
View File
@@ -1,6 +1,5 @@
<?php
error_reporting(e_all);
if(time() - $_SESSION['time_p'] > 5) {
if(time() - (!empty($_SESSION['time_p']) ? $_SESSION['time_p'] : 0) > 5) {
$_SESSION['time_p'] = '';
$_SESSION['error_p'] = '';
}