Fixed ternary operator bugs introduced in GroupFeedElement, a=chris

Chris Pollett [2019-07-13 18:Jul:th]
Fixed ternary operator bugs introduced in GroupFeedElement, a=chris
Filename
src/views/elements/GroupfeedElement.php
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;
ViewGit