Commit 9fa71fb4 authored by Francois Marier's avatar Francois Marier
Browse files

import/leap: fix contenttype selection for empty entries

This was preventing entries like these from being imported:

        <content type=""></content>
Signed-off-by: default avatarFrancois Marier <>
parent 4339ecf6
......@@ -1010,6 +1010,8 @@ class PluginImportLeap extends PluginImport {
case 'html':
case 'text':
return (string)$entry->content;
case '':
return ''; // empty entry
throw new SystemException("Unrecognised content type for entry '$entry->id'");
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