From b20bca7df2eba09a79a1050d2ff36ef799332a08 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Tue, 28 Apr 2009 15:30:03 -0400
Subject: [PATCH] - Fix fatal error after last commit in rcube_imap (#1485825)
---
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 a14f4ae..7c79157 100644
--- a/program/include/rcube_json_output.php
+++ b/program/include/rcube_json_output.php
@@ -130,8 +130,11 @@
*/
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);
}
}
--
Gitblit v1.9.1