This commit is contained in:
lopar
2019-06-22 13:24:29 +03:00
parent 28615eec69
commit a715f06e3b
2 changed files with 8 additions and 9 deletions
+5 -1
View File
@@ -849,7 +849,11 @@ function show_eff_inf($u, $type)
if ($type == 1) {
$and = " AND `type` != 1022";
}
$effs = db::c()->query('SELECT * FROM `effects` WHERE `owner` = ?i' . $and, $u)->fetch_assoc();
$effs = db::c()->query('SELECT * FROM `effects` WHERE `type` <> 20 AND `owner` = ?i' . $and, $u)->fetch_assoc();
/* FIXME Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 132644820 bytes) in /home/combats/web/combats.loc/public_html/functions.php on line 873
* Если на человеке стоит type=20
*
*/
$etype = $effs['type'];
if ($type == 1) {
while ($effs) {