r44864 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44863‎ | r44864 | r44865 >
Date:00:21, 21 December 2008
Author:catrope
Status:ok
Tags:
Comment:
API: Fix weird ==/=== bug in API help: a possible value of zero is interpreted as "can be empty".
Modified paths:
  • /trunk/phase3/includes/api/ApiBase.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiBase.php
@@ -265,7 +265,7 @@
266266 $choices = array();
267267 $nothingPrompt = false;
268268 foreach ($type as $t)
269 - if ($t=='')
 269+ if ($t === '')
270270 $nothingPrompt = 'Can be empty, or ';
271271 else
272272 $choices[] = $t;

Status & tagging log