Index: trunk/phase3/includes/api/ApiQueryBlocks.php |
— | — | @@ -130,8 +130,8 @@ |
131 | 131 | $this->addWhereIf( 'ipb_user != 0', isset( $show['account'] ) ); |
132 | 132 | $this->addWhereIf( 'ipb_user != 0 OR ipb_range_end > ipb_range_start', isset( $show['!ip'] ) ); |
133 | 133 | $this->addWhereIf( 'ipb_user = 0 AND ipb_range_end = ipb_range_start', isset( $show['ip'] ) ); |
134 | | - $this->addWhereIf( "ipb_expiry = '".$db->getInfinity()."'", isset( $show['!temp'] ) ); |
135 | | - $this->addWhereIf( "ipb_expiry != '".$db->getInfinity()."'", isset( $show['temp'] ) ); |
| 134 | + $this->addWhereIf( 'ipb_expiry = '.$db->addQuotes($db->getInfinity(), isset( $show['!temp'] ) ); |
| 135 | + $this->addWhereIf( 'ipb_expiry != '.$db->addQuotes($db->getInfinity(), isset( $show['temp'] ) ); |
136 | 136 | $this->addWhereIf( "ipb_range_end = ipb_range_start", isset( $show['!range'] ) ); |
137 | 137 | $this->addWhereIf( "ipb_range_end > ipb_range_start", isset( $show['range'] ) ); |
138 | 138 | } |