From: Roan Kattouw Date: Sun, 21 Dec 2008 00:21:01 +0000 (+0000) Subject: API: Fix weird ==/=== bug in API help: a possible value of zero is interpreted as... X-Git-Tag: 1.31.0-rc.0~43853 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=781597bdce12dfd54d4548a6ed4f4412005a2a77;p=lhc%2Fweb%2Fwiklou.git API: Fix weird ==/=== bug in API help: a possible value of zero is interpreted as "can be empty". --- diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index ff9129c1bd..a94464cc2a 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -265,7 +265,7 @@ abstract class ApiBase { $choices = array(); $nothingPrompt = false; foreach ($type as $t) - if ($t=='') + if ($t === '') $nothingPrompt = 'Can be empty, or '; else $choices[] = $t;