fix: MySQL 5.7 compatibility + undefined variables

This commit is contained in:
Martin Ambrus
2017-11-10 14:07:32 +01:00
parent c07dd99627
commit 603d28f31a
3 changed files with 16 additions and 8 deletions
+1 -1
View File
@@ -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();