Merge branch 'MDL-46433-master' of git://github.com/lameze/moodle

This commit is contained in:
Dan Poltawski 2014-07-28 11:49:37 +01:00
commit 733d20a0e8

View File

@ -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;
}
}
}