Commit 854a3854 authored by Nigel McNie's avatar Nigel McNie
Browse files

Prevent warnings when potential blogposts don't have <link>s.



That's not really a good situation, as it means they're blogposts
without blogs, but hey.
Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent 17519b22
......@@ -144,6 +144,9 @@ class LeapImportBlog extends LeapImportArtefactPlugin {
// TODO: get all entries that think they're attached to the blogpost.
// I think we can only look for files, Mahara doesn't understand
// attaching something that isn't a file to a blogpost
if (!isset($blogpost->link)) {
continue;
}
foreach ($blogpostentry->link as $blogpostlink) {
$blogpost = null;
if ($importer->curie_equals($blogpostlink['rel'], PluginImportLeap::NS_LEAP, 'has_attachment') && isset($blogpostlink['href'])) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment