[xoops-cvslog 65] CVS update: xoops2jp/html/modules/system/admin/tplsets

Back to archive index

onokazu onoka****@users*****
2005年 6月 2日 (木) 08:44:22 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.10
--- 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	Thu Jun  2 08:44:22 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.10 2005/06/01 23:44:22 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&amp;op=listtpl&amp;tplset='.$tplsetname.'&amp;moddir='.$moddir.'">'._LIST.'</a> (<b>'.$filecount.'</b>)]</li>';
                     }
-                    echo '<li>'.$module->getVar('name').' [<a href="admin.php?fct=tplsets&amp;op=listtpl&amp;tplset='.$tplsetname.'&amp;moddir='.$moddir.'">'._LIST.'</a> (<b>'.$filecount.'</b>)]</li>';
                     unset($module);
                 }
                 $not_installed = array_diff(array_keys($installed_mods), array_keys($tplstats));


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