OSDN Git Service

applied some bug fixes
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / libs / SKIN.php
index cbe9009..ab6ab19 100755 (executable)
@@ -440,12 +440,9 @@ class ACTIONS extends BaseActions {
                                $condition = ($blog && $blog->isValidCategory($catid));\r
                                break;\r
                        case 'blogsetting':\r
-                               $condition = ($blog && $blog->isValidCategory($catid));\r
-                               break;\r
-                       case 'blogsetting':\r
                                if ($name == 'trackback' && $manager->pluginInstalled('NP_TrackBack')) {\r
                                        $plugin =& $manager->getPlugin('NP_TrackBack');\r
-                                       if ($plugin != NULL){\r
+                                       if ($plugin != NULL && $blog){\r
                                                $bid = $blog->getID();\r
                                                if ($value === '1') $value = 'yes';\r
                                                if ($value === '0') $value = 'no';\r