Gazelle/sections/ajax/giveback_report.php

16 lines
316 B
PHP
Raw Normal View History

2011-03-28 14:21:28 +00:00
<?
if(!check_perms('admin_reports')) {
error(403);
}
if(!is_number($_GET['id'])) {
error(0);
}
$DB->query("SELECT Status FROM reportsv2 WHERE ID=".$_GET['id']);
list($Status) = $DB->next_record();
if(isset($Status)) {
$DB->query("UPDATE reportsv2 SET Status='New', ResolverID = 0 WHERE ID=".$_GET['id']);
}
?>