Skip to content

Commit

Permalink
Merge branch 'MDL-46433-master' of git://github.com/lameze/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Jul 28, 2014
2 parents aba225f + 153b3ad commit 733d20a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions blog/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,11 @@ function blog_sync_external_entries($externalblog) {
$filtertags = array_map('trim', $filtertags);
$filtertags = array_map('strtolower', $filtertags);

foreach ($categories as $category) {
if (in_array(trim(strtolower($category->term)), $filtertags)) {
$containsfiltertag = true;
if (!empty($categories)) {
foreach ($categories as $category) {
if (in_array(trim(strtolower($category->term)), $filtertags)) {
$containsfiltertag = true;
}
}
}

Expand Down

0 comments on commit 733d20a

Please sign in to comment.