Fix 'Whole query' list actions

This commit is contained in:
Nathan Gray 2012-10-23 15:04:16 +00:00
parent f91d9e4e28
commit 73843d2359

View File

@ -562,6 +562,10 @@ class calendar_uilist extends calendar_ui
foreach($checked as $id) foreach($checked as $id)
{ {
$recur_date = $app = $app_id = null; $recur_date = $app = $app_id = null;
if(is_array($id) && $id['id'])
{
$id = $id['id'];
}
if(!(int)$id && preg_match('/^([a-z_-]+)([0-9]+)$/i',$id,$matches)) if(!(int)$id && preg_match('/^([a-z_-]+)([0-9]+)$/i',$id,$matches))
{ {
$app = $matches[1]; $app = $matches[1];