From 301dc491b4a2378dd2192ec12b3de44abf166221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Wed, 2 Jan 2013 16:21:54 +0100 Subject: [PATCH] [-] BO: Fix #PSCFV-6415 php notice --- controllers/admin/AdminInvoicesController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } }