From b0f80137622312396b9d1e879db71132f24ca707 Mon Sep 17 00:00:00 2001 From: slawkens1 Date: Mon, 28 Aug 2017 23:59:04 +0200 Subject: [PATCH] * and this --- system/libs/pot/OTS_Groups_List.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/system/libs/pot/OTS_Groups_List.php b/system/libs/pot/OTS_Groups_List.php index 6e32cb63..b11d1abd 100644 --- a/system/libs/pot/OTS_Groups_List.php +++ b/system/libs/pot/OTS_Groups_List.php @@ -69,7 +69,9 @@ class OTS_Groups_List implements IteratorAggregate, Countable else { $groups = new DOMDocument(); + if(!@$groups->load($file)) { error('Error: Cannot load groups.xml. More info in system/logs/error.log file.'); + log_append('error.log', '[OTS_Groups_List.php] Fatal error: Cannot load groups.xml (' . $file . '). Error: ' . print_r(error_get_last(), true)); return; } @@ -93,7 +95,9 @@ class OTS_Groups_List implements IteratorAggregate, Countable { // loads DOM document $groups = new DOMDocument(); + if(!@$groups->load($file)) { error('Error: Cannot load groups.xml. More info in system/logs/error.log file.'); + log_append('error.log', '[OTS_Groups_List.php] Fatal error: Cannot load groups.xml (' . $file . '). Error: ' . print_r(error_get_last(), true)); return; }