From 32dc21836510672a56fe62f23d291b2ec1de9eb9 Mon Sep 17 00:00:00 2001 From: zero Date: Tue, 11 Nov 2008 08:07:41 +0000 Subject: [PATCH] =?UTF-8?q?planet=20addon,=20bookmark=20=EC=95=A0=EB=93=9C?= =?UTF-8?q?=EC=98=A8=EC=9D=98=20=EA=B4=80=EB=A6=AC=EC=9E=90=20=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=EC=97=90=EC=84=9C=EC=9D=98=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4842 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- addons/planet_bookmark/planet_bookmark.addon.php | 3 ++- addons/planet_todo/planet_todo.addon.php | 7 ++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/addons/planet_bookmark/planet_bookmark.addon.php b/addons/planet_bookmark/planet_bookmark.addon.php index 51a6280df..ee6237afc 100644 --- a/addons/planet_bookmark/planet_bookmark.addon.php +++ b/addons/planet_bookmark/planet_bookmark.addon.php @@ -9,8 +9,9 @@ if($called_position == 'after_module_proc' && Context::getResponseMethod()!="XMLRPC" && Context::getResponseMethod()!="JSON") { $config = Context::get('config'); - if($config->mid == 'planet'){ + if($config && $config->mid == 'planet'){ $oPlanet = Context::get('planet'); + if(!is_object($oPlanet)) return; if($oPlanet->isMyPlanet()){ $oPlanetModel = &getModel('planet'); $countBookmark = $oPlanetModel->getTagSearchResultCount($oPlanet->getModuleSrl(),'bookmark'); diff --git a/addons/planet_todo/planet_todo.addon.php b/addons/planet_todo/planet_todo.addon.php index 07e4ae6a9..247dafe37 100644 --- a/addons/planet_todo/planet_todo.addon.php +++ b/addons/planet_todo/planet_todo.addon.php @@ -6,15 +6,12 @@ * @author SOLęµ° (sol@ngleader.com) * @brief **/ - - - if($called_position == 'after_module_proc' && Context::getResponseMethod()!="XMLRPC" && Context::getResponseMethod()!="JSON") { $config = Context::get('config'); - //getTagSearchResultCount - if($config->mid == 'planet'){ + if($config && $config->mid == 'planet'){ $oPlanet = Context::get('planet'); + if(!is_object($oPlanet)) return; if($oPlanet->isMyPlanet()){ $oPlanetModel = &getModel('planet'); $countTodo = $oPlanetModel->getTagSearchResultCount($oPlanet->getModuleSrl(),'todo');