onokazu
onoka****@users*****
2005年 6月 11日 (土) 11:50:14 JST
Index: xoops2jp/html/modules/system/admin/tplsets/main.php diff -u xoops2jp/html/modules/system/admin/tplsets/main.php:1.2.6.9 xoops2jp/html/modules/system/admin/tplsets/main.php:1.2.6.9.2.1 --- xoops2jp/html/modules/system/admin/tplsets/main.php:1.2.6.9 Mon May 16 20:30:26 2005 +++ xoops2jp/html/modules/system/admin/tplsets/main.php Sat Jun 11 11:50:14 2005 @@ -1,5 +1,5 @@ <?php -// $Id: main.php,v 1.2.6.9 2005/05/16 11:30:26 onokazu Exp $ +// $Id: main.php,v 1.2.6.9.2.1 2005/06/11 02:50:14 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -84,10 +84,12 @@ echo '<ul>'; foreach ($tplstats as $moddir => $filecount) { $module =& $module_handler->getByDirname($moddir); - if ($installed_mods[$moddir] > $filecount) { - $filecount = '<span style="color:#ff0000;">'.$filecount.'</span>'; + if (is_object($module)) { + if ($installed_mods[$moddir] > $filecount) { + $filecount = '<span style="color:#ff0000;">'.$filecount.'</span>'; + } + echo '<li>'.$module->getVar('name').' [<a href="admin.php?fct=tplsets&op=listtpl&tplset='.$tplsetname.'&moddir='.$moddir.'">'._LIST.'</a> (<b>'.$filecount.'</b>)]</li>'; } - echo '<li>'.$module->getVar('name').' [<a href="admin.php?fct=tplsets&op=listtpl&tplset='.$tplsetname.'&moddir='.$moddir.'">'._LIST.'</a> (<b>'.$filecount.'</b>)]</li>'; unset($module); } $not_installed = array_diff(array_keys($installed_mods), array_keys($tplstats));