MDL-46433 blog: fix error message when creating an external blog
This commit is contained in:
+5
-3
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user