@@ -89,7 +89,7 @@ |
||
89 | 89 | $this->db->sql_freeresult($result); |
90 | 90 | |
91 | 91 | $current_location_id = ''; |
92 | - $data = array_filter($data, function($row) use (&$current_location_id) { |
|
92 | + $data = array_filter($data, function ($row) use (&$current_location_id) { |
|
93 | 93 | $return = $current_location_id != $row['location_id']; |
94 | 94 | $current_location_id = $row['location_id']; |
95 | 95 | return $return; |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | * Upload image and return updated ad code or <img> of new banner when using ajax. |
116 | 116 | * |
117 | 117 | * @param string $ad_code Current ad code |
118 | - * @return mixed \phpbb\json_response when request is ajax or updated ad code otherwise. |
|
118 | + * @return string \phpbb\json_response when request is ajax or updated ad code otherwise. |
|
119 | 119 | */ |
120 | 120 | public function banner_upload($ad_code) |
121 | 121 | { |
@@ -226,6 +226,9 @@ discard block |
||
226 | 226 | return $ad_owner_id[0]; |
227 | 227 | } |
228 | 228 | |
229 | + /** |
|
230 | + * @param boolean $success |
|
231 | + */ |
|
229 | 232 | protected function send_ajax_response($success, $text) |
230 | 233 | { |
231 | 234 | $json_response = new \phpbb\json_response; |