Index: embed_widgets.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/embed_widgets/embed_widgets.module,v
retrieving revision 1.38
diff -u -p -r1.38 embed_widgets.module
--- embed_widgets.module	3 Jun 2009 01:47:20 -0000	1.38
+++ embed_widgets.module	10 Aug 2009 01:10:06 -0000
@@ -69,7 +69,8 @@ function embed_widgets_menu() {
  */
 function embed_widgets_boot() {
   global $widgets_mode;
-  $widgets_mode = $_REQUEST['widgets_mode'] ? $_REQUEST['widgets_mode'] : $_POST['widgets_mode'];
+  $widgets_mode = (!empty($_REQUEST['widgets_mode']) ? $_REQUEST['widgets_mode'] :
+    (!empty($_POST['widgets_mode']) ? $_POST['widgets_mode'] : ''));
   spl_autoload_register('embed_widgets_autoload');
 }
 
