So looks like we have the same function name used twice.
READ BELOW FOR THE QUICK FIX!
In reset_responder_status.php
function get_status_name($val) {
$query = "SELECT * FROM `$GLOBALS[mysql_prefix]un_status` WHERE `id` = " . $val;
$result = mysql_query($query);
if(mysql_num_rows($result) > 0) {
$row = stripslashes_deep(mysql_fetch_assoc($result));
$the_name = $row['group'] . " - " . $row['status_val'];
} else {
$the_name = "";
}
return $the_name;
}
And in member.inc.php
function get_status_name($id) {
$query = "SELECT * FROM `$GLOBALS[mysql_prefix]member_status` WHERE `id` = " . $id;
$result = mysql_query($query) or do_error($query, 'mysql query failed', mysql_error(), basename( __FILE__), __LINE__);
$row = mysql_fetch_array($result);
return $row['status_val'];
}
And finally, I found in functions.inc.php
function get_un_status_name($id) {
$query = "SELECT * FROM `$GLOBALS[mysql_prefix]un_status` WHERE `id` = " . $id;
$result = mysql_query($query);
if($result && mysql_num_rows($result) > 0) {
$row = stripslashes_deep(mysql_fetch_assoc($result));
return $row['status_val'];
} else {
return "unk";
}
}
The function in tickets/reset_responder_status.php can be renamed (Or removed).
On approximate line 12, rename the function...
function get_broken_status_name($val) {
Or simply remove the function.
Updates will be available on GitHub in about 10 minutes.
Thank you for reporting the defect.
- Eric Osterberg