Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
burpheart committed Aug 14, 2020
1 parent 38a2d6e commit 9a5e046
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions takeupdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ function bark($msg) {
if (get_user_class() < $staffmem_class)
permissiondenied();
if ($_POST['setdealt']){
$res = sql_query ("SELECT id FROM reports WHERE dealtwith=0 AND id IN (" . implode(", ", $_POST[delreport]) . ")");
$res = sql_query ("SELECT id FROM reports WHERE dealtwith=0 AND id IN (" . sqlesc(implode(", ", $_POST[delreport])) . ")");
while ($arr = mysql_fetch_assoc($res))
sql_query ("UPDATE reports SET dealtwith=1, dealtby = $CURUSER[id] WHERE id = $arr[id]") or sqlerr();
$Cache->delete_value('staff_new_report_count');
}
elseif ($_POST['delete']){
$res = sql_query ("SELECT id FROM reports WHERE id IN (" . implode(", ", $_POST[delreport]) . ")");
$res = sql_query ("SELECT id FROM reports WHERE id IN (" . sqlescimplode(", ", $_POST[delreport])) . ")");
while ($arr = mysql_fetch_assoc($res))
sql_query ("DELETE from reports WHERE id = $arr[id]") or sqlerr();
$Cache->delete_value('staff_new_report_count');
Expand Down

0 comments on commit 9a5e046

Please sign in to comment.