Umm, It will be import no sub menu exists.
I forget this case.
--- modules/shortcut/admin/index.php 13 7月 2008 21:21:14 +0900 1.9
+++ modules/shortcut/admin/index.php 16 8月 2008 11:44:31 +0900
@@ -167,16 +167,17 @@
$path = XOOPS_ROOT_PATH.'/modules/'.$dirname;
$lang = $path.'/language/'.$xoopsConfig['language'].'/modinfo.php';
if (!file_exists($lang)) $lang = $path.'/language/english/modinfo.php';
- include_once $lang;
+ if (file_exists($lang)) include_once $lang;
global $modversion;
include $path.'/xoops_version.php';
- $sub = $modversion['sub'];
$url = XOOPS_URL."/modules/$dirname/";
$id = store_new_links($url, $module->getVar('name'), 0, $weight);
- $n = 0;
- foreach ($sub as $k => $v) {
- store_new_links($url.$v['url'], $v['name'], $id, ++$n);
+ if (!empty($modversion['sub'])) {
+ $n = 0;
+ foreach ($modversion['sub'] as $k => $v) {
+ store_new_links($url.$v['url'], $v['name'], $id, ++$n);
+ }
}
return true;
}