--- webform_mysql_views.module	Sat Jan 15 01:05:12 2011
+++ webform_mysql_views.module	Sat Jan 15 01:05:12 2011
@@ -380,11 +380,15 @@
 
   global $db_url, $db_prefix;
 
+  if (!is_array($db_url)) { 
+    $db_url = array('default' => $db_url);  
+  }  
+
   //Discard non-alphanumeric chars
   $title = strtolower(str_replace(' ', '_', $title));
   $title = 'webform_views_'. preg_replace('/[^a-z0-9_]/', '', $title);
 
-  $db_name = substr(parse_url($db_url, PHP_URL_PATH), 1);
+  $db_name = substr(parse_url($db_url['default'], PHP_URL_PATH), 1);
 
   // Check whether the default view name is already being used
   // (For example duplicate node titles). Append $nid if necessary to ensure
@@ -414,7 +418,10 @@
   else {
     $errors = array();
     //Make sure site is using MySQL backend
-    if (substr($db_url, 0, 5) != 'mysql') {
+    if (!is_array($db_url)) {
+      $db_url = array('default' => $db_url); 
+    }
+    if (substr($db_url['default'], 0, 5) != 'mysql') {
       $errors[] = t("This module is only compatible with the MySQL backend.");
     }