diff --git a/common.php b/common.php index ba97a952c..9da7690df 100644 --- a/common.php +++ b/common.php @@ -463,7 +463,7 @@ if ($bo_table) { } } -if ($gr_id) { +if ($gr_id && is_string($gr_id)) { $group = get_group($gr_id); } diff --git a/lib/common.lib.php b/lib/common.lib.php index 4cbaf89d1..aaa27f660 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -746,6 +746,10 @@ function get_next_num($table) function get_group($gr_id, $is_cache=false) { global $g5; + + if( is_array($gr_id) ){ + return array(); + } static $cache = array();