Index: embed_widgets_ui.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/embed_widgets/embed_widgets_ui/Attic/embed_widgets_ui.module,v
retrieving revision 1.4.2.129
diff -u -u -r1.4.2.129 embed_widgets_ui.module
--- embed_widgets_ui.module	15 Aug 2008 21:58:56 -0000	1.4.2.129
+++ embed_widgets_ui.module	7 Feb 2009 04:54:42 -0000
@@ -319,7 +319,7 @@
  * Preprocess function for page.tpl.php
  */
 function embed_widgets_ui_preprocess_page(&$variables) {
-  if (!$_REQUEST['embed_widgets_mode'] && variable_get('embed_widgets_button', TRUE) && user_access('create widgets')) {
+  if (empty($_REQUEST['embed_widgets_mode']) && variable_get('embed_widgets_button', TRUE) && user_access('create widgets')) {
     $source = embed_widgets_page_load($_GET['q']);
     if ($source) {
       $image = theme('image', drupal_get_path('module', 'embed_widgets') . '/embed_button.gif', t("Embed this page's content on your site."), t("Embed this page's content on your site."));
@@ -335,7 +335,7 @@
  * Preprocess function for block.tpl.php
  */
 function embed_widgets_ui_preprocess_block(&$variables) {
-  if (!$_REQUEST['embed_widgets_mode'] && variable_get('embed_widgets_button', TRUE) && user_access('create widgets')) {
+  if (empty($_REQUEST['embed_widgets_mode']) && variable_get('embed_widgets_button', TRUE) && user_access('create widgets')) {
     $source = embed_widgets_block_load($variables['block']->module, $variables['block']->delta);
     if ($source) {
       $image = theme('image', drupal_get_path('module', 'embed_widgets') . '/embed_button.gif', t('Embed this content on your site.'), t('Embed this content on your site.'));
@@ -1588,7 +1588,7 @@
     }
   }
 
-  $output .= "<h2>" . t('Widget Sources') . "</h2>";
+  $output = "<h2>" . t('Widget Sources') . "</h2>";
   $output .= theme('table', $header, $rows);
   $output .= theme('pager', NULL, 25, 0);
 
