[xoops-cvslog 2570] CVS update: xoops2jp/html/modules/base/kernel

Back to archive index

Minahito minah****@users*****
2006年 3月 29日 (水) 23:12:28 JST


Index: xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php
diff -u xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.27 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.28
--- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.27	Wed Mar 29 22:49:23 2006
+++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php	Wed Mar 29 23:12:28 2006
@@ -362,13 +362,15 @@
                 $dir = XOOPS_ROOT_PATH.'/modules/'.$mod_dir.'/class/';
     			if(is_dir($dir)) {
     			    $files = glob($dir.'modulePreload*.class.php');
-    			    foreach($files as $file) {
-    					require_once $file;
-    					$className=preg_replace('/^modulePreload(\w*)\.class\.php/', $mod_dir.'ModulePreload\1', basename($file));
-    					if(class_exists($className)) {
-    						$instance =& new $className($this);
-    						$this->addActionFilter($instance);
-    					}
+    			    if (is_array($files)) {
+						foreach($files as $file) {
+							require_once $file;
+							$className=preg_replace('/^modulePreload(\w*)\.class\.php/', $mod_dir.'ModulePreload\1', basename($file));
+							if(class_exists($className)) {
+								$instance =& new $className($this);
+								$this->addActionFilter($instance);
+							}
+						}
     			    }
     			}
             }


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