Removed all instances of empty() where error suppression was not intended. Replaced...
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 25 Oct 2008 14:04:43 +0000 (14:04 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 25 Oct 2008 14:04:43 +0000 (14:04 +0000)
commitf48c6070dfec6a3c3c14efbf2b71b08afb72b0f4
treebfdc807e1f3cac37b096a728d15eff27e1ac9f78
parentc5bd0fae0967e11d6e08e61308c9eb6a8c58e9ac
Removed all instances of empty() where error suppression was not intended. Replaced with conversion to boolean, count() or empty string check as appropriate. Fixes a number of bugs due to incorrect conversion to boolean: suppressed edit summaries containing '0', ignored titles called '0', searches for '0' ignored, etc.
25 files changed:
includes/api/ApiBase.php
includes/api/ApiBlock.php
includes/api/ApiDelete.php
includes/api/ApiEditPage.php
includes/api/ApiFormatXml.php
includes/api/ApiMain.php
includes/api/ApiPageSet.php
includes/api/ApiPatrol.php
includes/api/ApiProtect.php
includes/api/ApiQuery.php
includes/api/ApiQueryBacklinks.php
includes/api/ApiQueryCategoryInfo.php
includes/api/ApiQueryDuplicateFiles.php
includes/api/ApiQueryExtLinksUsage.php
includes/api/ApiQueryInfo.php
includes/api/ApiQueryLogEvents.php
includes/api/ApiQueryRecentChanges.php
includes/api/ApiQueryRevisions.php
includes/api/ApiQuerySearch.php
includes/api/ApiQueryUserContributions.php
includes/api/ApiQueryUsers.php
includes/api/ApiQueryWatchlist.php
includes/api/ApiResult.php
includes/api/ApiRollback.php
includes/api/ApiUnblock.php