[*] small fix
This commit is contained in:
1 parent
3a8c968c76
commit
3c25e4b8ec
2 files changed
+2
No files matched your search
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 -->
|
||||||
|
|||||||
Reference in new issue
Block a user