From 168a1443d1a6e0047221e6857844bc71183ff9e6 Mon Sep 17 00:00:00 2001 From: Mzhelskiy Maxim Date: Sat, 23 Jun 2012 05:46:31 +0400 Subject: [PATCH] fix --- classes/modules/user/User.class.php | 2 +- config/loader.php | 4 ++-- templates/language/russian.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/classes/modules/user/User.class.php b/classes/modules/user/User.class.php index 4826208f..ba1d1a55 100644 --- a/classes/modules/user/User.class.php +++ b/classes/modules/user/User.class.php @@ -493,7 +493,7 @@ class ModuleUser extends Module { if ($this->oUserCurrent) { return; } - if (isset($_COOKIE['key']) and $sKey=(string)$_COOKIE['key']) { + if (isset($_COOKIE['key']) and is_string($_COOKIE['key']) and $sKey=$_COOKIE['key']) { if ($oUser=$this->GetUserBySessionKey($sKey)) { $this->Authorization($oUser); } else { diff --git a/config/loader.php b/config/loader.php index 87176a53..f5e058b1 100644 --- a/config/loader.php +++ b/config/loader.php @@ -68,7 +68,7 @@ if ($hDirInclude = opendir($sDirInclude)) { $sFileIncludePathFull=$sDirInclude.$sFileInclude; if ($sFileInclude !='.' and $sFileInclude !='..' and is_file($sFileIncludePathFull)) { $aPathInfo=pathinfo($sFileIncludePathFull); - if (strtolower($aPathInfo['extension'])=='php') { + if (isset($aPathInfo['extension']) and strtolower($aPathInfo['extension'])=='php') { require_once($sDirInclude.$sFileInclude); } } @@ -85,7 +85,7 @@ if ($hDirInclude = opendir($sDirInclude)) { $sFileIncludePathFull=$sDirInclude.$sFileInclude; if ($sFileInclude !='.' and $sFileInclude !='..' and is_file($sFileIncludePathFull)) { $aPathInfo=pathinfo($sFileIncludePathFull); - if (strtolower($aPathInfo['extension'])=='php') { + if (isset($aPathInfo['extension']) and strtolower($aPathInfo['extension'])=='php') { require_once($sDirInclude.$sFileInclude); } } diff --git a/templates/language/russian.php b/templates/language/russian.php index 2ddfd596..43070099 100644 --- a/templates/language/russian.php +++ b/templates/language/russian.php @@ -530,7 +530,7 @@ return array( 'user_menu_profile_friends' => 'Друзья', 'user_menu_profile_stream' => 'Активность', 'user_menu_profile_notes' => 'Заметки', - 'user_menu_profile_favourites' => 'Избраннное', + 'user_menu_profile_favourites' => 'Избранное', 'user_menu_profile_favourites_topics' => 'Избранные топики', 'user_menu_profile_favourites_comments' => 'Избранные комментарии', 'user_menu_profile_tags' => 'Метки',