From 248b4d3f48a17e5c52f80492c63e477097c48ded Mon Sep 17 00:00:00 2001 From: Laurent Laffont <llaffont@afi-sa.fr> Date: Thu, 27 Apr 2017 17:10:09 +0200 Subject: [PATCH] hotline #55142 Fix error on cosmogramme when launching treatments via navigator --- cosmogramme/php/classes/classe_log.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cosmogramme/php/classes/classe_log.php b/cosmogramme/php/classes/classe_log.php index 5a571d5ff6c..ffb73b23a05 100644 --- a/cosmogramme/php/classes/classe_log.php +++ b/cosmogramme/php/classes/classe_log.php @@ -87,6 +87,8 @@ class Class_log // ---------------------------------------------------------------- public function log($texte) { global $mode_cron; + if (!$this->fic) + $this->open(true); fwrite($this->fic, $texte ."\n"); if($this->afficher == false) return false; if($mode_cron) -- GitLab