mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Fix build
This commit is contained in:
@@ -828,7 +828,8 @@ abstract class task_abstract
|
||||
(null, 0, "stopped", 0, :active,
|
||||
:name, "0000/00/00 00:00:00", :class, :settings)';
|
||||
|
||||
if ($settings && ! DOMDocument::loadXML($settings)) {
|
||||
$domdoc = new DOMDocument();
|
||||
if ($settings && ! $domdoc->loadXML($settings)) {
|
||||
throw new Exception('settings invalide');
|
||||
} elseif ( ! $settings) {
|
||||
$settings = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<tasksettings>\n</tasksettings>";
|
||||
|
Reference in New Issue
Block a user