diff --git a/ps_emailsmanager.php b/ps_emailsmanager.php index b6f4d78..90221aa 100644 --- a/ps_emailsmanager.php +++ b/ps_emailsmanager.php @@ -841,8 +841,8 @@ public function getAvailableTemplates() return $templates; } - //remove '.' and '..' from array - $templatesDir = array_diff($templatesDir, array('.', '..')); + //remove '.', '..' and 'index.php' from array + $templatesDir = array_diff($templatesDir, array('.', '..', 'index.php')); foreach ($templatesDir as $tpl) { $settings = $uploadDir.$tpl.DIRECTORY_SEPARATOR.'settings.json';