Эффекты не удалялись из базы
This commit is contained in:
parent
99653c61ce
commit
c35b0f2c9a
2
main.php
2
main.php
@ -801,7 +801,7 @@ if ($obraz && ($user['shadow'] == 'g0.gif' || $user['shadow'] == 'man0.gif')) {
|
||||
if (isset($_GET['del'])) {
|
||||
if ($_GET['del'] == 1) {
|
||||
if ($_GET['efid'] > 0) {
|
||||
$pl = mysql_fetch_array(mysql_query('SELECT `id`, `type` FROM `effects` WHERE `owner` = "' . $user['id'] . '" AND `id` = "' . (int)$_GET['efid'] . '" LIMIT 1'));
|
||||
$pl = db::c()->query('SELECT `id`, `type` FROM `effects` WHERE `owner` = ?i AND `id` = ?i', $user['id'], (int)$_GET['efid'])->fetch_assoc();
|
||||
if (isset($pl['id'])) {
|
||||
del_efs($user['id'], $pl['id'], $pl['type']);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user