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();