From: Roan Kattouw Date: Tue, 25 Mar 2008 21:01:30 +0000 (+0000) Subject: Fixing E_NOTICE X-Git-Tag: 1.31.0-rc.0~48810 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=e0a6679e8c6356a422836996893de1349ba9e3f2;p=lhc%2Fweb%2Fwiklou.git Fixing E_NOTICE --- diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index 0499ab5b49..97b18f405c 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -242,7 +242,7 @@ abstract class ApiBase { if (is_array($desc)) $desc = implode($paramPrefix, $desc); - $type = $paramSettings[self :: PARAM_TYPE]; + $type = isset($paramSettings[self :: PARAM_TYPE])? $paramSettings[self :: PARAM_TYPE] : null; if (isset ($type)) { if (isset ($paramSettings[self :: PARAM_ISMULTI])) $prompt = 'Values (separate with \'|\'): ';