diff options
Diffstat (limited to 'inc/html.php')
-rw-r--r-- | inc/html.php | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/inc/html.php b/inc/html.php index 31ddf7631..01a796bf7 100644 --- a/inc/html.php +++ b/inc/html.php @@ -765,17 +765,10 @@ function html_buildlist($data,$class,$func,$lifunc='html_li_default'){ $level = $item['level']; //print item - if(is_array($lifunc)){ - $ret .= $lifunc[0]->$lifunc[1]($item); //user object method - }else{ - $ret .= $lifunc($item); //user function - } + $ret .= call_user_func($lifunc,$item); $ret .= '<div class="li">'; - if(is_array($func)){ - $ret .= $func[0]->$func[1]($item); //user object method - }else{ - $ret .= $func($item); //user function - } + + $ret .= call_user_func($func,$item); $ret .= '</div>'; } |