diff options
author | thomascube <thomas@roundcube.net> | 2009-04-26 17:02:13 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2009-04-26 17:02:13 +0000 |
commit | 5c2d6e3555af7a2e71c0087d4b4c0a8780e835ca (patch) | |
tree | aca35cf6fd38086773f65109e1484242a243fa3e | |
parent | 99d86607372eadef6e11701d8184d758a45c2062 (diff) |
Fix adding labels from plugins
-rw-r--r-- | program/include/rcube_json_output.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/program/include/rcube_json_output.php b/program/include/rcube_json_output.php index a14f4ae14..7c79157fd 100644 --- a/program/include/rcube_json_output.php +++ b/program/include/rcube_json_output.php @@ -130,8 +130,11 @@ class rcube_json_output */ public function add_label() { - $arg_list = func_get_args(); - foreach ($arg_list as $i => $name) { + $args = func_get_args(); + if (count($args) == 1 && is_array($args[0])) + $args = $args[0]; + + foreach ($args as $name) { $this->texts[$name] = rcube_label($name); } } |