OSDN Git Service

FIX: デバッグ動作時に発生する警告に対処
[nucleus-jp/nucleus-jp-ancient.git] / nucleus / libs / PAGEFACTORY.php
index 6f2b2b2..b303bc9 100755 (executable)
@@ -169,7 +169,7 @@ class PAGEFACTORY extends BaseActions {
 \r
        // create category dropdown box\r
        function parse_categories($startidx = 0) {\r
-                       if ($this->variables['catid'])\r
+                       if (array_key_exists('catid', $this->variables) && $this->variables['catid'])\r
                                $catid = $this->variables['catid'];                             // on edit item\r
                        else\r
                                $catid = $this->blog->getDefaultCategory();             // on add item\r
@@ -395,7 +395,7 @@ class PAGEFACTORY extends BaseActions {
                                $manager->notify('AddItemFormExtras', $param);\r
                                break;\r
                        case 'edit':\r
-                               $PARAM = array(\r
+                               $param = array(\r
                                        'variables'     =>  $this->variables,\r
                                        'blog'          => &$this->blog,\r
                                        'itemid'        =>  $this->variables['itemid']\r