mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-30 01:24:23 +00:00
fix: don't show errors and fix that empty value
This commit is contained in:
@@ -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'] = '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user