From 781597bdce12dfd54d4548a6ed4f4412005a2a77 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sun, 21 Dec 2008 00:21:01 +0000 Subject: [PATCH] API: Fix weird ==/=== bug in API help: a possible value of zero is interpreted as "can be empty". --- includes/api/ApiBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1