From: hickert Date: Fri, 22 Oct 2010 13:04:22 +0000 (+0000) Subject: Updated error handling X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9773098162a69430e5c427eb458578bb39e15560;p=gosa.git Updated error handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20125 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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;