Merge branch 'MDL-46433-27' of git://github.com/lameze/moodle into MOODLE_27_STABLE

This commit is contained in:
Dan Poltawski
2014-07-28 11:49:38 +01:00
+5 -3
View File
@@ -181,9 +181,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;
}
}
}