[-] BO: Fix #PSCFV-6415 php notice
This commit is contained in:
1 parent
b9e688a4bf
commit
301dc491b4
1 file changed
+4
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user