From 9773098162a69430e5c427eb458578bb39e15560 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 22 Oct 2010 13:04:22 +0000 Subject: [PATCH] Updated error handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20125 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_jsonRPC.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-core/include/class_jsonRPC.inc b/gosa-core/include/class_jsonRPC.inc index 1735ad6f6..bf82d971c 100644 --- a/gosa-core/include/class_jsonRPC.inc +++ b/gosa-core/include/class_jsonRPC.inc @@ -121,7 +121,7 @@ class jsonRPC { { if($this->lastStats['http_code'] != 200){ $error = $this->getHttpStatusCodeMessage($this->lastStats['http_code']); - if(isset($this->lastResult['error']['error'])){ + if(isset($this->lastResult['error']['error']) && is_array($this->lastResult['error']['error'])){ $err = $this->lastResult['error']['error']; $message = call_user_func_array(sprintf,$err); $error .= $message; -- 2.30.2