[-] BO: Fix #PSCFV-6415 php notice

This commit is contained in:
Rémi Gaillard
2013-01-02 16:21:54 +01:00
parent b9e688a4bf
commit 301dc491b4
@@ -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;
}
}