mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-10 14:46:09 +00:00
fix: MySQL 5.7 compatibility + undefined variables
This commit is contained in:
@@ -2977,7 +2977,7 @@ class MYSQLi_DB implements IDbConnection {
|
||||
}
|
||||
|
||||
function addNotice($uid, $toWref, $ally, $type, $topic, $data, $time = 0) {
|
||||
list($uid, $toWref, $ally, $type, $topic, $data, $time) = $this->escape_input($uid, $toWref, $ally, $type, $topic, $data, $time);
|
||||
list($uid, $toWref, $ally, $type, $topic, $data, $time) = $this->escape_input((int) $uid, (int) $toWref, (int) $ally, (int) $type, $topic, $data, (int) $time);
|
||||
|
||||
if($time == 0) {
|
||||
$time = time();
|
||||
|
||||
Reference in New Issue
Block a user