notices fix

This commit is contained in:
lopar
2018-03-09 19:04:36 +02:00
parent 6be5fa9647
commit d90e1af97b
4 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -5177,8 +5177,8 @@ function tele_check($to, $text)
function get_meshok()
{
global $user;
$d = db::c()->query('SELECT SUM(`gmeshok`) FROM `inventory` WHERE `owner` = ?i AND `setsale` = 0 AND `gmeshok` > 0', $user['id'])->fetch_assoc();
return ($user['sila'] * 4 + $d[0]);
$d = db::c()->query('SELECT SUM(`gmeshok`) AS `ves` FROM `inventory` WHERE `owner` = ?i AND `setsale` = 0 AND `gmeshok` > 0', $user['id'])->fetch_assoc();
return ($user['sila'] * 4 + $d['ves']);
}
function get_meshok_to($to)