From: Brion Vibber Date: Sat, 10 Apr 2004 10:02:16 +0000 (+0000) Subject: Fix notices X-Git-Tag: 1.3.0beta1~480 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=f171bd0f8800e30ce79b6956892176d425b94c62;p=lhc%2Fweb%2Fwiklou.git Fix notices --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index c64bce53be..6942edf8aa 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -873,7 +873,7 @@ function wfAcceptToPrefs( $accept, $def = "*/*" ) { foreach( $parts as $part ) { # FIXME: doesn't deal with params like 'text/html; level=1' - list( $value, $qpart ) = explode( ";", $part ); + @list( $value, $qpart ) = explode( ";", $part ); if( !isset( $qpart ) ) { $prefs[$value] = 1; } elseif( preg_match( '/q\s*=\s*(\d*\.\d+)/', $qpart, $match ) ) { diff --git a/includes/Metadata.php b/includes/Metadata.php index b435284d05..2e396faefb 100644 --- a/includes/Metadata.php +++ b/includes/Metadata.php @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -define(RDF_TYPE_PREFS, "application/rdf+xml,text/xml;q=0.7,application/xml;q=0.5,text/rdf;q=0.1"); +define("RDF_TYPE_PREFS", "application/rdf+xml,text/xml;q=0.7,application/xml;q=0.5,text/rdf;q=0.1"); function wfDublinCoreRdf($article) {