summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatthew.gregg <matthew.gregg@gmail.com>2008-06-23 13:30:43 -0400
committermatthew.gregg <matthew.gregg@gmail.com>2008-06-23 13:30:43 -0400
commit25dad58d427a6c0608a99f437acb0f6e2abff47f (patch)
tree4543a24386211bff0a89c05aca8938d3a033d524
parentcc35d84545130486a42d55e3a54cf99ce7047986 (diff)
xhtml/xml and IE do not mix so well PITS # 00103
darcs-hash:20080623173043-982e4-5951fba93a2aa28f3e8e622167f6b33c1abc6949.gz
-rw-r--r--lib/util.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util.php b/lib/util.php
index 04eb2094e..6bcdc31ce 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -44,7 +44,7 @@ function common_server_error($msg, $code=500) {
}
# Show a user error
-function common_user_error($msg, $code=400) {
+function common_client_error($msg, $code=400) {
static $status = array(400 => 'Bad Request',
401 => 'Unauthorized',
402 => 'Payment Required',
@@ -1017,7 +1017,7 @@ function common_negotiate_type($cprefs, $sprefs) {
}
$bestq = 0;
- $besttype = NULL;
+ $besttype = "text/html";
foreach(array_keys($combine) as $type) {
if($combine[$type] > $bestq) {