From 42dcf5c33cdad533677c8ff8fdbe6d4d1502713f Mon Sep 17 00:00:00 2001 From: Peter Skirenko Date: Wed, 3 Dec 2025 07:50:16 +0000 Subject: [PATCH] Prevent error message when there are no datasources. --- symphony/lib/toolkit/class.datasourcemanager.php | 1 + 1 file changed, 1 insertion(+) diff --git a/symphony/lib/toolkit/class.datasourcemanager.php b/symphony/lib/toolkit/class.datasourcemanager.php index 6629466..b2e6a1e 100644 --- a/symphony/lib/toolkit/class.datasourcemanager.php +++ b/symphony/lib/toolkit/class.datasourcemanager.php @@ -97,6 +97,7 @@ public static function listAll() { $result = array(); $structure = General::listStructure(DATASOURCES, '/data.[\\w-]+.php/', false, 'ASC', DATASOURCES); + $structure['filelist'] = $structure['filelist'] ?? array(); if (is_array($structure['filelist']) && !empty($structure['filelist'])) { foreach ($structure['filelist'] as $f) {