Index: common.inc
===================================================================
--- common.inc	(revision 2229)
+++ common.inc	(working copy)
@@ -1577,7 +1577,12 @@
  */
 function l($text, $path, $options = array()) {
   global $language;
-
+  
+  // Check for invalid options, e.g. null
+  if (!is_array($options)){
+    $options = array();
+  }
+   
   // Merge in defaults.
   $options += array(
       'attributes' => array(),
