0) { $data = dbarray($user_query); $user_blacklist = $data['user_blacklist'] ? explode('.', $data['user_blacklist']) : []; if (in_array($user_id, $user_blacklist)) { $user_blacklist = array_flip($user_blacklist); unset($user_blacklist[$user_id]); $data['user_blacklist'] = implode('.', array_flip($user_blacklist)); $result = dbquery("UPDATE ".DB_USERS." SET user_blacklist='".$data['user_blacklist']."' WHERE user_id='".$userdata['user_id']."'"); if ($result) { $users = dbarray(dbquery("SELECT user_name FROM ".DB_USERS." WHERE user_id='".$user_id."' LIMIT 1")); echo "".(sprintf($locale['uf_blacklist_004'], $users['user_name'])).""; } } else { echo $locale['uf_blacklist_005']; } } else { echo $locale['uf_blacklist_006']; }