[-] BO: Fix #PSCFV-6415 php notice
This commit is contained in:
@@ -273,11 +273,14 @@ class AdminInvoicesControllerCore extends AdminController
|
|||||||
|
|
||||||
protected function getInvoicesModelsFromDir($directory)
|
protected function getInvoicesModelsFromDir($directory)
|
||||||
{
|
{
|
||||||
$templates = array();
|
$templates = false;
|
||||||
|
|
||||||
if (is_dir($directory))
|
if (is_dir($directory))
|
||||||
$templates = glob($directory.'invoice-*.tpl');
|
$templates = glob($directory.'invoice-*.tpl');
|
||||||
|
|
||||||
|
if (!$templates)
|
||||||
|
$templates = array();
|
||||||
|
|
||||||
return $templates;
|
return $templates;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user