mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-14 08:54:21 +01:00
Fix warning
This commit is contained in:
@@ -1896,14 +1896,16 @@ class Task extends CommonObject
|
||||
*/
|
||||
public function generateDocument($modele, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
|
||||
{
|
||||
global $conf, $langs;
|
||||
global $conf;
|
||||
|
||||
$langs->load("projects");
|
||||
$outputlangs->load("projects");
|
||||
|
||||
if (!dol_strlen($modele)) {
|
||||
$modele = 'nodefault';
|
||||
|
||||
if (!empty($this->modelpdf)) {
|
||||
if (!empty($this->model_pdf)) {
|
||||
$modele = $this->model_pdf;
|
||||
} elseif (!empty($this->modelpdf)) { // deprecated
|
||||
$modele = $this->modelpdf;
|
||||
} elseif (!empty($conf->global->PROJECT_TASK_ADDON_PDF)) {
|
||||
$modele = $conf->global->PROJECT_TASK_ADDON_PDF;
|
||||
|
||||
Reference in New Issue
Block a user