Эффекты не удалялись из базы

This commit is contained in:
Igor Barkov (iwork) 2019-09-20 17:22:22 +03:00
parent 99653c61ce
commit c35b0f2c9a

View File

@ -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 {