Gazelle/sections/reportsv2/ajax_grab_report.php

21 lines
401 B
PHP
Raw Normal View History

2011-03-28 14:21:28 +00:00
<?
/*
* This page simply assings a report to the person clicking on
* the Grab / Grab All button.
*/
if(!check_perms('admin_reports')){
//error(403);
echo '403';
die();
}
if(!is_number($_GET['id'])) {
die();
}
$DB->query("UPDATE reportsv2 SET Status='InProgress', ResolverID=".$LoggedUser['ID']." WHERE ID=".$_GET['id']);
if($DB->affected_rows() == 0) {
echo '0';
} else {
echo '1';
}