mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 10:56:26 +00:00
27 lines
421 B
PHP
27 lines
421 B
PHP
<?
|
|
/*
|
|
* This page simply assings a report to the person clicking on
|
|
* the Claim / Claim 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';
|
|
}
|