OSDN Git Service

FIX:Two undefined variable(BLOG.php)
authorshizuki <shizuki@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Sat, 11 Jul 2009 14:18:55 +0000 (14:18 +0000)
committershizuki <shizuki@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Sat, 11 Jul 2009 14:18:55 +0000 (14:18 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@1032 1ca29b6e-896d-4ea0-84a5-967f57386b96

utf8/nucleus/libs/BLOG.php

index b36e05e..66b5984 100755 (executable)
@@ -567,7 +567,9 @@ class BLOG {
                $template =& $manager->getTemplate($template);
                $data['blogid'] = $this->getID();
 
-               echo TEMPLATE::fill($template['ARCHIVELIST_HEADER'],$data);
+               $tplt = isset($template['ARCHIVELIST_HEADER']) ? $template['ARCHIVELIST_HEADER']
+                                                              : '';
+               echo TEMPLATE::fill($tplt, $data);
 
                $query = 'SELECT itime, SUBSTRING(itime,1,4) AS Year, SUBSTRING(itime,6,2) AS Month, SUBSTRING(itime,9,2) as Day FROM '.sql_table('item')
                . ' WHERE iblog=' . $this->getID()
@@ -631,7 +633,9 @@ class BLOG {
 
                sql_free_result($res);
 
-               echo TEMPLATE::fill($template['ARCHIVELIST_FOOTER'],$data);
+               $tplt = isset($template['ARCHIVELIST_FOOTER']) ? $template['ARCHIVELIST_FOOTER']
+                                                              : '';
+               echo TEMPLATE::fill($tplt, $data);
        }