Fix r83390, need to do where ipb_deleted IS NULL as we're left joining in the table...
authorSam Reed <reedy@users.mediawiki.org>
Mon, 7 Mar 2011 22:58:26 +0000 (22:58 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Mon, 7 Mar 2011 22:58:26 +0000 (22:58 +0000)
Duh

includes/api/ApiQueryBase.php

index a6469ab..e49da10 100644 (file)
@@ -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' );
                        }
                }
        }