[xoops-cvslog 4898] CVS update: xoops2jp/html/modules/base/blocks

Zurück zum Archiv-Index

Minahito minah****@users*****
2006年 10月 7日 (土) 19:03:17 JST


Index: xoops2jp/html/modules/base/blocks/legacy_themes.php
diff -u xoops2jp/html/modules/base/blocks/legacy_themes.php:1.1.2.1 xoops2jp/html/modules/base/blocks/legacy_themes.php:1.1.2.1.2.1
--- xoops2jp/html/modules/base/blocks/legacy_themes.php:1.1.2.1	Wed Aug  2 18:37:38 2006
+++ xoops2jp/html/modules/base/blocks/legacy_themes.php	Sat Oct  7 19:03:17 2006
@@ -2,6 +2,11 @@
 function b_legacy_themes_show($options)
 {
     global $xoopsConfig;
+	
+	if (count($xoopsConfig['theme_set_allowed']) == 0) {
+		return null;
+	}
+	
     $theme_options = array();
     foreach ($xoopsConfig['theme_set_allowed'] as $theme) {
         $theme_option['name'] = $theme;
@@ -12,6 +17,7 @@
         }
         $theme_options[] = $theme_option;
     }
+	
     $block = array();
     $block['count'] = count($xoopsConfig['theme_set_allowed']);
     $block['mode'] = $options[0];


xoops-cvslog メーリングリストの案内
Zurück zum Archiv-Index