diff --git a/admin/templates/groups/perms.tpl b/admin/templates/groups/perms.tpl
index 728589c..f28bed2 100644
--- a/admin/templates/groups/perms.tpl
+++ b/admin/templates/groups/perms.tpl
@@ -62,7 +62,7 @@
|
{foreach from=$modules item=module}
- {if $module.status == 1 && $module.ModuleIsFunction == 1}
+ {if $module.ModuleStatus == 1 && $module.ModuleIsFunction == 1}
{/if}
diff --git a/class/class.modules.php b/class/class.modules.php
index 44bf724..9fa3168 100755
--- a/class/class.modules.php
+++ b/class/class.modules.php
@@ -12,7 +12,7 @@
class AVE_Module
{
- public $_modules = array();
+ public $_modules = [];
function __construct()
@@ -26,7 +26,7 @@
*/
function getModules()
{
- $modules = array();
+ $modules = [];
// Получаем из БД информацию о всех установленных модулях
$modules_db = $this->moduleListGet();
diff --git a/class/class.user.php b/class/class.user.php
index f2fd027..ac5c78e 100755
--- a/class/class.user.php
+++ b/class/class.user.php
@@ -31,7 +31,7 @@ class AVE_User
*
* @public array
*/
- public $_allowed_admin_permission = array(
+ public $_allowed_admin_permission = [
'alles', // все права
'adminpanel', // доступ в админку
'group_view', 'group_edit', // группы пользователей
@@ -51,7 +51,7 @@ class AVE_User
'db_actions', // база данных
'logs_view', 'logs_clear', // логи
'cache_clear', 'cache_thumb' // сессии и кеш
- );
+ ];
/**
* Разделитель используемый при записи даты рождения
@@ -157,7 +157,8 @@ class AVE_User
// Проверка даты рождения
$match = '';
- if (!empty($_POST['birthday']) && !preg_match($regex_birthday, $_POST['birthday'], $match))
+
+ if (! empty($_POST['birthday']) && ! preg_match($regex_birthday, $_POST['birthday'], $match))
{
$errors[] = @$AVE_Template->get_config_vars('USER_ERROR_DATEFORMAT');
}
|