diff --git a/controllers/admin/AdminInvoicesController.php b/controllers/admin/AdminInvoicesController.php index c2658675a..242d71e5c 100644 --- a/controllers/admin/AdminInvoicesController.php +++ b/controllers/admin/AdminInvoicesController.php @@ -273,11 +273,14 @@ class AdminInvoicesControllerCore extends AdminController protected function getInvoicesModelsFromDir($directory) { - $templates = array(); + $templates = false; if (is_dir($directory)) $templates = glob($directory.'invoice-*.tpl'); + if (!$templates) + $templates = array(); + return $templates; } }