viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]
diff --git a/src/views/elements/GroupfeedElement.php b/src/views/elements/GroupfeedElement.php index c2ac7be4e..d0a078120 100644 --- a/src/views/elements/GroupfeedElement.php +++ b/src/views/elements/GroupfeedElement.php @@ -256,7 +256,7 @@ class GroupfeedElement extends Element implements CrawlConstants }?> </div><?php } - $data['TOTAL_ROWS'] = empty($data['TOTAL_ROWS']) : 0 ? + $data['TOTAL_ROWS'] = empty($data['TOTAL_ROWS']) ? 0 : $data['TOTAL_ROWS']; $this->view->helper("pagination")->render($paging_query, $data['LIMIT'], $data['RESULTS_PER_PAGE'], $data['TOTAL_ROWS'], @@ -665,7 +665,7 @@ class GroupfeedElement extends Element implements CrawlConstants */ public function renderScripts($data) { - $data['TOTAL_ROWS'] = empty($data['TOTAL_ROWS']) : 0 ? + $data['TOTAL_ROWS'] = empty($data['TOTAL_ROWS']) ? 0 : $data['TOTAL_ROWS']; if ($data['LIMIT'] + $data['RESULTS_PER_PAGE'] == $data['TOTAL_ROWS']) { $data['LIMIT'] += $data['RESULTS_PER_PAGE'] - 1;