@@ -167,7 +167,7 @@ |
||
| 167 | 167 | $sql_ary['WHERE'] .= ' AND u.user_lastvisit <> 0 AND u.user_id <> ' . (int) $this->user->data['user_id']; |
| 168 | 168 | $sql_ary['ORDER_BY'] = 'u.user_lastvisit DESC'; |
| 169 | 169 | |
| 170 | - $this->sql_date_field = 'user_lastvisit'; |
|
| 170 | + $this->sql_date_field = 'user_lastvisit'; |
|
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | /** |
@@ -189,9 +189,9 @@ discard block |
||
| 189 | 189 | */ |
| 190 | 190 | protected function block_has_content(array &$returned_data, $edit_mode) |
| 191 | 191 | { |
| 192 | - if ($this->block_returns_nothing($returned_data)) |
|
| 193 | - { |
|
| 194 | - return $this->set_edit_mode_content($returned_data, $edit_mode, 'BLOCK_NO_DATA'); |
|
| 192 | + if ($this->block_returns_nothing($returned_data)) |
|
| 193 | + { |
|
| 194 | + return $this->set_edit_mode_content($returned_data, $edit_mode, 'BLOCK_NO_DATA'); |
|
| 195 | 195 | } |
| 196 | 196 | else if ($this->block_is_missing_template($returned_data)) |
| 197 | 197 | { |
@@ -204,21 +204,21 @@ discard block |
||
| 204 | 204 | |
| 205 | 205 | /** |
| 206 | 206 | * @param array $data |
| 207 | - * @param bool $edit_mode |
|
| 208 | - * @param string $lang_key |
|
| 207 | + * @param bool $edit_mode |
|
| 208 | + * @param string $lang_key |
|
| 209 | 209 | * @return bool |
| 210 | 210 | */ |
| 211 | 211 | protected function set_edit_mode_content(array &$data, $edit_mode, $lang_key) |
| 212 | 212 | { |
| 213 | - if ($edit_mode) |
|
| 214 | - { |
|
| 215 | - $data['status'] = 0; |
|
| 216 | - $data['content'] = $this->translator->lang($lang_key); |
|
| 213 | + if ($edit_mode) |
|
| 214 | + { |
|
| 215 | + $data['status'] = 0; |
|
| 216 | + $data['content'] = $this->translator->lang($lang_key); |
|
| 217 | 217 | |
| 218 | - return true; |
|
| 219 | - } |
|
| 218 | + return true; |
|
| 219 | + } |
|
| 220 | 220 | |
| 221 | - return false; |
|
| 221 | + return false; |
|
| 222 | 222 | } |
| 223 | 223 | |
| 224 | 224 | /** |
@@ -230,14 +230,14 @@ discard block |
||
| 230 | 230 | return !$returned_data['content'] && empty($returned_data['data']); |
| 231 | 231 | } |
| 232 | 232 | |
| 233 | - /** |
|
| 234 | - * @param array $returned_data |
|
| 235 | - * @return bool |
|
| 236 | - */ |
|
| 237 | - protected function block_is_missing_template(array $returned_data) |
|
| 238 | - { |
|
| 239 | - return is_array($returned_data['data']) && !$returned_data['template']; |
|
| 240 | - } |
|
| 233 | + /** |
|
| 234 | + * @param array $returned_data |
|
| 235 | + * @return bool |
|
| 236 | + */ |
|
| 237 | + protected function block_is_missing_template(array $returned_data) |
|
| 238 | + { |
|
| 239 | + return is_array($returned_data['data']) && !$returned_data['template']; |
|
| 240 | + } |
|
| 241 | 241 | |
| 242 | 242 | /** |
| 243 | 243 | * Should we display this block? |
@@ -123,7 +123,7 @@ |
||
| 123 | 123 | ); |
| 124 | 124 | |
| 125 | 125 | // we get the template after running 'display()' above so template can be set dynamically |
| 126 | - $returned_data['template'] = $block_instance->get_template(); |
|
| 126 | + $returned_data['template'] = $block_instance->get_template(); |
|
| 127 | 127 | |
| 128 | 128 | if ($this->block_has_content($returned_data, $edit_mode)) |
| 129 | 129 | { |