Index: omniture.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/omniture/omniture.module,v
retrieving revision 1.2
diff -u -p -r1.2 omniture.module
--- omniture.module	12 Sep 2007 20:24:33 -0000	1.2
+++ omniture.module	10 Oct 2007 16:09:03 -0000
@@ -91,8 +91,10 @@ function omniture_footer($main = 0) {
     }
 
     $vars = "";
-    foreach ($omniture_vars as $variable => $value) {
-      $extra_variables .= "\nvar ". $variable .'="'. $value .'";';
+    if(isset($omniture_vars)) {
+      foreach ($omniture_vars as $variable => $value) {
+        $extra_variables .= "\nvar ". $variable .'="'. $value .'";';
+      }
     }
     
     $script = '<script language="javascript" type="text/javascript" src="/js/s_code_remote_h.js"></script>'."\n";
