From 1dd94715e70fc066b93629aae33aa39700a76b2c Mon Sep 17 00:00:00 2001 From: Amit sharma Date: Fri, 30 Jan 2026 12:25:46 +0530 Subject: [PATCH] getting a warning error while trying to export the theme. --- controllers/admin/AdminThemesController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/admin/AdminThemesController.php b/controllers/admin/AdminThemesController.php index 795b96943..bf38a6f5e 100644 --- a/controllers/admin/AdminThemesController.php +++ b/controllers/admin/AdminThemesController.php @@ -1206,7 +1206,9 @@ class AdminThemesControllerCore extends AdminController '); foreach ($hook_list as &$row) { - $row['exceptions'] = trim(preg_replace('/(,,+)/', ',', $row['exceptions']), ','); + if($row['exceptions']){ + $row['exceptions'] = trim(preg_replace('/(,,+)/', ',', $row['exceptions']), ','); + } } $native_modules = $this->getNativeModule();