Index: phonetic.module
===================================================================
--- phonetic.module	(revision 91)
+++ phonetic.module	(working copy)
@@ -154,25 +154,27 @@
   $whitelist = variable_get('phonetic_whitelist','');
   $whitewords = explode("\n",$whitelist);
   
-  foreach($arr as $word){
-	$met = metaphone($word);
-	
-	foreach($blacklist as $key => $value){
-		if($value == $met){
-	      if(!in_array($word,$whitewords)){
-	  			$strlen = strlen($key);
-	  			$compare = similar_text(strtolower($word),$key);
-	  			if($strlen == $compare){
-	  				for($i=0;$i<strlen($word);$i++){
-	  					$replace .= '*';
-	  				}
-	  				$text = str_replace($word, $replace, $text);
-	  			}
-	      }
-		}
-	}
-	
-	$replace = '';
+  if (is_array($blacklist)) {
+    foreach($arr as $word){
+      $met = metaphone($word);
+
+      foreach($blacklist as $key => $value){
+        if($value == $met){
+          if(!in_array($word,$whitewords)){
+            $strlen = strlen($key);
+            $compare = similar_text(strtolower($word),$key);
+            if($strlen == $compare){
+              for($i=0;$i<strlen($word);$i++){
+                $replace .= '*';
+              }
+              $text = str_replace($word, $replace, $text);
+            }
+          }
+        }
+      }
+
+      $replace = '';
+    }
   }
   return $text;
 }
@@ -225,4 +227,4 @@
       }
       break;
     }
-}
\ No newline at end of file
+}
