[-] BO: Fix #PSCFV-6415 php notice
This commit is contained in:
@@ -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