--- includes/common.inc~	2008-03-25 19:25:45.000000000 +0100
+++ includes/common.inc	2008-03-25 19:25:49.000000000 +0100
@@ -1428,6 +1428,9 @@ function drupal_attributes($attributes =
  *   an HTML string containing a link to the given path.
  */
 function l($text, $path, $options = array()) {
+  // Check for invalid options, e.g. null
+  if (!is_array($options)) $options = array();
+  
   // Merge in defaults.
   $options += array(
       'attributes' => array(),
