[*] small fix

This commit is contained in:
rsgrinko committed 2021-12-09 14:58:36 +03:00
1 parent 3a8c968c76
commit 3c25e4b8ec
2 files changed
+2

No files matched your search

+1
View File
@@ -44,6 +44,7 @@ if(CUser::is_user()) {
$USER = CCache::getCache($cacheId); $USER = CCache::getCache($cacheId);
} else { } else {
$USER = CUser::getFields(); $USER = CUser::getFields();
unset($USER['password']);
CCache::writeCache($cacheId, $USER); CCache::writeCache($cacheId, $USER);
} }
+1
View File
@@ -43,6 +43,7 @@ if(!CUser::is_user() and $_SERVER['REQUEST_URI'] !== '/login.php') {
'userLogin': '<?php echo $USER['login']; ?>', 'userLogin': '<?php echo $USER['login']; ?>',
'date': '<?php echo date("d.m.Y H:i:s"); ?>', 'date': '<?php echo date("d.m.Y H:i:s"); ?>',
}; };
var arrUser = <?php echo CJson::create($USER); ?>
</script> </script>
<!-- Favicons --> <!-- Favicons -->