Skip to content

Commit

Permalink
fixup! use proper types in API (fossar#879)
Browse files Browse the repository at this point in the history
  • Loading branch information
niol committed Mar 9, 2018
1 parent a662abd commit 1741808
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions daos/Items.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ public function get($options = []) {
// remove private posts with private tags
if (!\F3::get('auth')->showPrivateTags()) {
foreach ($items as $idx => $item) {
$tags = explode(',', $item['tags']);
foreach ($tags as $tag) {
foreach ($item['tags'] as $tag) {
if (strpos(trim($tag), '@') === 0) {
unset($items[$idx]);
break;
Expand Down

0 comments on commit 1741808

Please sign in to comment.