API: Fix weird ==/=== bug in API help: a possible value of zero is interpreted as...
authorRoan Kattouw <catrope@users.mediawiki.org>
Sun, 21 Dec 2008 00:21:01 +0000 (00:21 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sun, 21 Dec 2008 00:21:01 +0000 (00:21 +0000)
includes/api/ApiBase.php

index ff9129c..a94464c 100644 (file)
@@ -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;