| @@ 85-89 (lines=5) @@ | ||
| 82 | $i = 0; |
|
| 83 | while ($myrow = $xoopsDB->fetchArray($result)) { |
|
| 84 | $display = true; |
|
| 85 | if ($modid && $gperm_handler) { |
|
| 86 | if ($restricted && !$gperm_handler->checkRight('news_view', $myrow['topicid'], $groups, $modid)) { |
|
| 87 | $display = false; |
|
| 88 | } |
|
| 89 | } |
|
| 90 | ||
| 91 | if ($display) { |
|
| 92 | $ret[$i]['image'] = 'assets/images/news.png'; |
|
| @@ 129-133 (lines=5) @@ | ||
| 126 | $result = $xoopsDB->query($sql, $limit, $offset); |
|
| 127 | while ($myrow = $xoopsDB->fetchArray($result)) { |
|
| 128 | $display = true; |
|
| 129 | if ($modid && $gperm_handler) { |
|
| 130 | if ($restricted && !$gperm_handler->checkRight('news_view', $myrow['com_itemid'], $groups, $modid)) { |
|
| 131 | $display = false; |
|
| 132 | } |
|
| 133 | } |
|
| 134 | if ($i + 1 > $limit) { |
|
| 135 | $display = false; |
|
| 136 | } |
|