From: Sam Reed Date: Mon, 7 Mar 2011 22:58:26 +0000 (+0000) Subject: Fix r83390, need to do where ipb_deleted IS NULL as we're left joining in the table... X-Git-Tag: 1.31.0-rc.0~31567 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=20548c2596ef6cfe9c629c2914e83f5aec0b3523;p=lhc%2Fweb%2Fwiklou.git Fix r83390, need to do where ipb_deleted IS NULL as we're left joining in the table, so it can be null Duh --- diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php index a6469ab5ab..e49da10f73 100644 --- a/includes/api/ApiQueryBase.php +++ b/includes/api/ApiQueryBase.php @@ -491,7 +491,7 @@ abstract class ApiQueryBase extends ApiBase { // Don't show hidden names if ( !$userCanViewHiddenUsers ) { - $this->addWhereFld( 'ipb_deleted', 0 ); + $this->addWhere( 'ipb_deleted = 0 OR ipb_deleted IS NULL' ); } } }