Fix syntax error

This commit is contained in:
Laurent Destailleur 2017-08-21 12:35:43 +02:00
parent b48f501a0c
commit fe724a2e69

View File

@ -154,11 +154,11 @@ class pdf_baleine extends ModelePDFProjects
$task = new Task($this->db);
$tasksarray = $task->getTasksArray(0,0,$object->id);
if (! $object->id > 0) // Special case when used with object = specimen, we may return all lines
if (! $object->id > 0) // Special case when used with object = specimen, we may return all lines
{
$tasksarray=array_slice($tasksarray, 0, min(5, count($tasksarray)));
}
$object->lines=$tasksarray;
$nblignes=count($object->lines);
@ -329,7 +329,7 @@ class pdf_baleine extends ModelePDFProjects
if (! empty($conf->global->MAIN_UMASK))
@chmod($file, octdec($conf->global->MAIN_UMASK));
$ this->result = array('fullpath'=>$file);
$this->result = array('fullpath'=>$file);
return 1; // Pas d'erreur
}