From: Jure Kajzer Date: Thu, 10 Nov 2011 20:50:01 +0000 (+0000) Subject: * sry about that :S ... 10x Aaron X-Git-Tag: 1.31.0-rc.0~26582 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/supprimer.php?a=commitdiff_plain;h=d12e05c42bfdab05fbf820d41030cde63bc98167;p=lhc%2Fweb%2Fwiklou.git * sry about that :S ... 10x Aaron --- diff --git a/includes/api/ApiQueryBlocks.php b/includes/api/ApiQueryBlocks.php index d5e2e6475b..a97d515b28 100644 --- a/includes/api/ApiQueryBlocks.php +++ b/includes/api/ApiQueryBlocks.php @@ -130,8 +130,8 @@ class ApiQueryBlocks extends ApiQueryBase { $this->addWhereIf( 'ipb_user != 0', isset( $show['account'] ) ); $this->addWhereIf( 'ipb_user != 0 OR ipb_range_end > ipb_range_start', isset( $show['!ip'] ) ); $this->addWhereIf( 'ipb_user = 0 AND ipb_range_end = ipb_range_start', isset( $show['ip'] ) ); - $this->addWhereIf( 'ipb_expiry = '.$db->addQuotes($db->getInfinity(), isset( $show['!temp'] ) ); - $this->addWhereIf( 'ipb_expiry != '.$db->addQuotes($db->getInfinity(), isset( $show['temp'] ) ); + $this->addWhereIf( 'ipb_expiry = '.$db->addQuotes($db->getInfinity()), isset( $show['!temp'] ) ); + $this->addWhereIf( 'ipb_expiry != '.$db->addQuotes($db->getInfinity()), isset( $show['temp'] ) ); $this->addWhereIf( "ipb_range_end = ipb_range_start", isset( $show['!range'] ) ); $this->addWhereIf( "ipb_range_end > ipb_range_start", isset( $show['range'] ) ); }