mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 11:27:24 +08:00
fix warning
This commit is contained in:
+2
-2
@@ -9,13 +9,13 @@ if (get_user_class() < $staffmem_class)
|
||||
permissiondenied();
|
||||
|
||||
|
||||
if ($_POST['setdealt']){
|
||||
if (!empty($_POST['setdealt'])) {
|
||||
$res = sql_query ("SELECT id FROM cheaters WHERE dealtwith=0 AND id IN (" . implode(", ", $_POST[delcheater]) . ")");
|
||||
while ($arr = mysql_fetch_assoc($res))
|
||||
sql_query ("UPDATE cheaters SET dealtwith=1, dealtby = $CURUSER[id] WHERE id = $arr[id]") or sqlerr();
|
||||
$Cache->delete_value('staff_new_cheater_count');
|
||||
}
|
||||
elseif ($_POST['delete']){
|
||||
elseif (!empty($_POST['delete'])) {
|
||||
$res = sql_query ("SELECT id FROM cheaters WHERE id IN (" . implode(", ", $_POST[delcheater]) . ")");
|
||||
while ($arr = mysql_fetch_assoc($res))
|
||||
sql_query ("DELETE from cheaters WHERE id = $arr[id]") or sqlerr();
|
||||
|
||||
Reference in New Issue
Block a user