From 1e2f6b9a6bc041b6a9fa652672b7d5612063ecba Mon Sep 17 00:00:00 2001 From: Prof Langues Date: Mon, 12 Oct 2020 16:47:35 +0200 Subject: [PATCH] syntaxte getUser --- core/core.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/core.php b/core/core.php index 6a731fa7..07468546 100644 --- a/core/core.php +++ b/core/core.php @@ -1827,8 +1827,8 @@ class core extends common { */ foreach($this->getData(['user']) as $userId => $userIds){ $t = explode('/',$this->getData(['user', $userId, 'accessUrl'])); - if ( $this->getuser('id') && - $userId !== $this->getuser('id') && + if ( $this->getUser('id') && + $userId !== $this->getUser('id') && $this->getData(['user', $userId,'accessUrl']) === $this->getUrl() && array_intersect($t,self::$accessList) && array_intersect($t,self::$accessExclude) !== false && @@ -1841,8 +1841,8 @@ class core extends common { } // Accès concurrent stocke la page visitée if ($this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD')) { - $this->setData(['user',$this->getuser('id'),'accessUrl',$this->getUrl()]); - $this->setData(['user',$this->getuser('id'),'accessTimer',time()]); + $this->setData(['user',$this->getUser('id'),'accessUrl',$this->getUrl()]); + $this->setData(['user',$this->getUser('id'),'accessTimer',time()]); } // Breadcrumb $title = $this->getData(['page', $this->getUrl(0), 'title']);