petits bugs

This commit is contained in:
Fred Tempez 2022-02-18 18:40:30 +01:00
parent 2bf7020886
commit 17cc95ef22
2 changed files with 10 additions and 8 deletions

View File

@ -2705,8 +2705,6 @@ class core extends common {
}
// Check l'accès à la page
$access = null;
$accessInfo['userName'] = '';
$accessInfo['pageId'] = '';
if($this->getData(['page', $this->getUrl(0)]) !== null) {
if(
$this->getData(['page', $this->getUrl(0), 'group']) === self::GROUP_VISITOR
@ -2746,6 +2744,8 @@ class core extends common {
* - Une partie de l'URL fait partie de la liste de filtrage (édition d'un module etc..)
* - L'édition est ouverte depuis un temps dépassé, on considère que la page est restée ouverte et qu'elle ne sera pas validée
*/
$accessInfo['userName'] = '';
$accessInfo['pageId'] = '';
foreach($this->getData(['user']) as $userId => $userIds){
$t = explode('/',$this->getData(['user', $userId, 'accessUrl']));
if ( $this->getUser('id') &&

View File

@ -845,7 +845,9 @@ if ($this->getData(['core', 'dataVersion']) < 11300) {
if ($this->getData(['core', 'dataVersion']) < 12000) {
// Effacer le dossier
$this->removeDir('core/module/addon');
if (is_dir('core/module/addon') ) {
$this->removeDir('core/module/addon');
}
// Mise à jour
$this->setData(['core', 'dataVersion', 12000]);