From e726f446e447d8b4f21ca3806f1f7923b0c99a1e Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Thu, 2 Apr 2020 21:30:54 +0200 Subject: [PATCH] =?UTF-8?q?[9.2.27]=20Pb=20de=20mise=20=C3=A0=20jour?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core.php b/core/core.php index f3f27399..ca82c926 100644 --- a/core/core.php +++ b/core/core.php @@ -2635,11 +2635,11 @@ class layout extends common { $lastAutoUpdate = mktime(0, 0, 0); if( $this->getData(['config','autoUpdate']) === true && $lastAutoUpdate > $this->getData(['core','lastAutoUpdate']) + 86400 ) { - $this->setData(['core','lastAutoUpdate',$lastAutoUpdate]); - $this->saveData(); + $this->setData(['core','lastAutoUpdate',$lastAutoUpdate]); if ( helper::checkNewVersion(common::ZWII_UPDATE_CHANNEL) ) { $rightItems .= '
  • ' . template::ico('update colorRed') . '
  • '; } + $this->saveData(); } } $rightItems .= '
  • ' . template::ico('user', 'right') . '' . $this->getUser('firstname') . ' ' . $this->getUser('lastname') . '
  • ';