2020-07-17, 09:47 PM
Hi all,
I am working on fixing a bug with RateMyThread where this Display Order of the icons cannot be updated from within the admin panel. I was looking a the code that handles this and wanted some clarification on a function.
In the above code does $mybb->get_input('display') return an array of results of all inputs containing the word "display", the input names are formatted like: display[5]? I look forward to your responses!
I am working on fixing a bug with RateMyThread where this Display Order of the icons cannot be updated from within the admin panel. I was looking a the code that handles this and wanted some clarification on a function.
if($action == 'disporder') {
if($mybb->get_input('display'))
{
foreach($mybb->get_input('display') as $id => $newdisplay)
{
$insert = array(
"disporder" => $db->escape_string($newdisplay)
);
$db->update_query("ratemf_rates", $insert, "id='".$id."'");
}
ratemf_rates_cache();
}
admin_redirect("index.php?module=config-ratemf");
}
In the above code does $mybb->get_input('display') return an array of results of all inputs containing the word "display", the input names are formatted like: display[5]? I look forward to your responses!