From 365ad03c3e32df3f9d4292174e8b0db0ce1b3489 Mon Sep 17 00:00:00 2001 From: kevin_fourie Date: Fri, 1 Aug 2008 10:18:28 +0000 Subject: [PATCH] Merged in from DEV trunk... --- plugins/ktcore/KTDashlets.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/ktcore/KTDashlets.php b/plugins/ktcore/KTDashlets.php index a945a8b..a0c64b3 100644 --- a/plugins/ktcore/KTDashlets.php +++ b/plugins/ktcore/KTDashlets.php @@ -94,8 +94,13 @@ class KTInfoDashlet extends KTBaseDashlet { return false; } } else { - // We now check for substitute help files. try to generate an error. + // We now check for substitute help files. try to generate an error.\ + // This function can return a PEAR Error object, we will need to check it $aHelpInfo = KTHelp::getHelpInfo($this->helpLocation); + if(PEAR::isError($aHelpInfo)) + { + return false; + } } // NORMAL users never see edit-option. -- libgit2 0.21.4