From f171bd0f8800e30ce79b6956892176d425b94c62 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 10 Apr 2004 10:02:16 +0000 Subject: [PATCH] Fix notices --- includes/GlobalFunctions.php | 2 +- includes/Metadata.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.20.1