[Jaws-commits] r9658 - trunk/jaws/html/gadgets/Search

afz at jaws-project.com afz at jaws-project.com
Mon Oct 13 04:13:50 UTC 2008


Author: afz
Date: 2008-10-13 04:13:50 +0000 (Mon, 13 Oct 2008)
New Revision: 9658

Modified:
   trunk/jaws/html/gadgets/Search/LayoutHTML.php
Log:
fix error in search gadget when DBOTest gadget installed on previous version

Modified: trunk/jaws/html/gadgets/Search/LayoutHTML.php
===================================================================
--- trunk/jaws/html/gadgets/Search/LayoutHTML.php	2008-10-13 04:13:44 UTC (rev 9657)
+++ trunk/jaws/html/gadgets/Search/LayoutHTML.php	2008-10-13 04:13:50 UTC (rev 9658)
@@ -154,6 +154,9 @@
         $gchk->addOption(_t('GLOBAL_ALL'), 'All');
         foreach ($searchableGadgets as $gadget) {
             $info = $GLOBALS['app']->LoadGadget($gadget, 'Info');
+            if (Jaws_Error::IsError($info)) {
+                continue;
+            }
             $gchk->AddOption($info->GetName(), $gadget);
         }
         $default = !is_null($post['gadgets']) ? $post['gadgets'] : 'All';



More information about the Jaws-commits mailing list