[xoops-cvslog 1569] CVS update: xoops2jp/html/modules/base/preload/ThemeSelect

Back to archive index

Minahito minah****@users*****
2006年 1月 5日 (木) 17:29:53 JST


Index: xoops2jp/html/modules/base/preload/ThemeSelect/ThemeSelect.class.php
diff -u xoops2jp/html/modules/base/preload/ThemeSelect/ThemeSelect.class.php:1.1.2.2 xoops2jp/html/modules/base/preload/ThemeSelect/ThemeSelect.class.php:1.1.2.3
--- xoops2jp/html/modules/base/preload/ThemeSelect/ThemeSelect.class.php:1.1.2.2	Thu Nov 17 12:44:30 2005
+++ xoops2jp/html/modules/base/preload/ThemeSelect/ThemeSelect.class.php	Thu Jan  5 17:29:53 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: ThemeSelect.class.php,v 1.1.2.2 2005/11/17 03:44:30 minahito Exp $
+// $Id: ThemeSelect.class.php,v 1.1.2.3 2006/01/05 08:29:53 minahito Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -54,7 +54,7 @@
 		// Check Theme and set it to session.
 		//
 		$userTheme=$eventArgs['xoopsUser']->getVar('theme');
-		if(in_array($userTheme,$controller->getConfig('theme_set_allowed'))) {
+		if(is_array($userTheme) && in_array($userTheme,$controller->getConfig('theme_set_allowed'))) {
 			$_SESSION['xoopsUserTheme'] = $userTheme;
 		}
 	}


xoops-cvslog メーリングリストの案内
Back to archive index