| @@ 152-158 (lines=7) @@ | ||
| 149 | $show = array_flip( $params['show'] ); |
|
| 150 | ||
| 151 | /* Check for conflicting parameters. */ |
|
| 152 | if ( ( isset( $show['account'] ) && isset( $show['!account'] ) ) |
|
| 153 | || ( isset( $show['ip'] ) && isset( $show['!ip'] ) ) |
|
| 154 | || ( isset( $show['range'] ) && isset( $show['!range'] ) ) |
|
| 155 | || ( isset( $show['temp'] ) && isset( $show['!temp'] ) ) |
|
| 156 | ) { |
|
| 157 | $this->dieUsageMsg( 'show' ); |
|
| 158 | } |
|
| 159 | ||
| 160 | $this->addWhereIf( 'ipb_user = 0', isset( $show['!account'] ) ); |
|
| 161 | $this->addWhereIf( 'ipb_user != 0', isset( $show['account'] ) ); |
|
| @@ 232-238 (lines=7) @@ | ||
| 229 | if ( !is_null( $show ) ) { |
|
| 230 | $show = array_flip( $show ); |
|
| 231 | ||
| 232 | if ( ( isset( $show['minor'] ) && isset( $show['!minor'] ) ) |
|
| 233 | || ( isset( $show['patrolled'] ) && isset( $show['!patrolled'] ) ) |
|
| 234 | || ( isset( $show['top'] ) && isset( $show['!top'] ) ) |
|
| 235 | || ( isset( $show['new'] ) && isset( $show['!new'] ) ) |
|
| 236 | ) { |
|
| 237 | $this->dieUsageMsg( 'show' ); |
|
| 238 | } |
|
| 239 | ||
| 240 | $this->addWhereIf( 'rev_minor_edit = 0', isset( $show['!minor'] ) ); |
|
| 241 | $this->addWhereIf( 'rev_minor_edit != 0', isset( $show['minor'] ) ); |
|