diff -uNr phase3/includes/GlobalFunctions.php ../htdocs/admin/wiki/includes/GlobalFunctions.php --- phase3/includes/GlobalFunctions.php 2005-06-01 07:17:42.000000000 +0100 +++ ../htdocs/admin/wiki/includes/GlobalFunctions.php 2005-06-05 14:40:20.000000000 +0100 @@ -1096,7 +1096,7 @@ */ function wfElement( $element, $attribs = array(), $contents = '') { $out = '<' . $element; - foreach( $attribs as $name => $val ) { + foreach( (array)$attribs as $name => $val ) { $out .= ' ' . $name . '="' . htmlspecialchars( $val ) . '"'; } if( is_null( $contents ) ) {