From 073d093997ab13ab703ad25ff21d2f9959a11ac9 Mon Sep 17 00:00:00 2001 From: Shadowss Date: Thu, 19 Sep 2013 10:53:51 +0300 Subject: [PATCH] fix addNotice function --- GameEngine/Database/db_MYSQL.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/GameEngine/Database/db_MYSQL.php b/GameEngine/Database/db_MYSQL.php index 2beccbd7..6d47ca51 100644 --- a/GameEngine/Database/db_MYSQL.php +++ b/GameEngine/Database/db_MYSQL.php @@ -1741,13 +1741,13 @@ class MYSQL_DB { return mysql_query($q, $this->connection); } - function addNotice($uid, $wref, $aid, $type, $topic, $data, $time = 0) { - if($time == 0) { - $time = time(); - } - $q = "INSERT INTO " . TB_PREFIX . "ndata (id, uid, toWref, ally, topic, ntype, data, time, viewed) values (0,'$uid','$wref','$aid','$topic',$type,'$data',$time,0)"; - return mysql_query($q, $this->connection) or die(mysql_error()); - } + function addNotice($uid, $toWref, $ally, $type, $topic, $data, $time = 0) { + if($time == 0) { + $time = time(); + } + $q = "INSERT INTO " . TB_PREFIX . "ndata (id, uid, toWref, ally, topic, ntype, data, time, viewed) values (0,'$uid','$toWref','$ally','$topic',$type,'$data',$time,0)"; + return mysql_query($q, $this->connection) or die(mysql_error()); + } function getNotice($uid) { $q = "SELECT * FROM " . TB_PREFIX . "ndata where uid = $uid and del = 0 ORDER BY time DESC";