You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by ch...@apache.org on 2009/04/03 12:04:37 UTC

svn commit: r761593 - /incubator/shindig/trunk/php/src/gadgets/GadgetFeatureRegistry.php

Author: chabotc
Date: Fri Apr  3 10:04:37 2009
New Revision: 761593

URL: http://svn.apache.org/viewvc?rev=761593&view=rev
Log:
An empty feature seems to have snuk into the features library, this makes us a bit more fault tolerant (ie: just ignore that feature)

Modified:
    incubator/shindig/trunk/php/src/gadgets/GadgetFeatureRegistry.php

Modified: incubator/shindig/trunk/php/src/gadgets/GadgetFeatureRegistry.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/GadgetFeatureRegistry.php?rev=761593&r1=761592&r2=761593&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/GadgetFeatureRegistry.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/GadgetFeatureRegistry.php Fri Apr  3 10:04:37 2009
@@ -34,6 +34,7 @@
   }
 
   public function getFeatureContent($feature, GadgetContext $context, $isGadgetContext) {
+    if (empty($feature)) return '';
     if (!isset($this->features[$feature])) {
       throw new GadgetException("Invalid feature: ".htmlentities($feature));
     }