Index: trunk/phase3/includes/api/ApiQueryBlocks.php |
— | — | @@ -72,6 +72,8 @@ |
73 | 73 | $this->addFields('ipb_id'); |
74 | 74 | if($fld_user) |
75 | 75 | $this->addFields(array('ipb_address', 'ipb_user')); |
| 76 | + if($fld_user || $fld_flags) |
| 77 | + $this->addFields('ipb_auto'); |
76 | 78 | if($fld_by) |
77 | 79 | { |
78 | 80 | $this->addTables('user'); |
— | — | @@ -87,7 +89,7 @@ |
88 | 90 | if($fld_range) |
89 | 91 | $this->addFields(array('ipb_range_start', 'ipb_range_end')); |
90 | 92 | if($fld_flags) |
91 | | - $this->addFields(array('ipb_auto', 'ipb_anon_only', 'ipb_create_account', 'ipb_enable_autoblock', 'ipb_block_email', 'ipb_deleted')); |
| 93 | + $this->addFields(array('ipb_anon_only', 'ipb_create_account', 'ipb_enable_autoblock', 'ipb_block_email', 'ipb_deleted')); |
92 | 94 | |
93 | 95 | $this->addOption('LIMIT', $params['limit'] + 1); |
94 | 96 | $this->addWhereRange('ipb_timestamp', $params['dir'], $params['start'], $params['end']); |