We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 9a2e3a52 authored by mattl's avatar mattl

Don't access HTTP_USER_AGENT if it doesn't exist

parent d6cc13ac
......@@ -72,7 +72,7 @@ class MobileProfilePlugin extends WAP20Plugin
} else if (isset($_COOKIE['MobileOverride'])) {
// Cookie override is controlled by link at bottom.
$this->serveMobile = (bool)$_COOKIE['MobileOverride'];
} else {
} elseif (array_key_exists('HTTP_USER_AGENT', $_SERVER)) {
// If they like the WAP 2.0 mimetype, serve them MP
// @fixme $type is undefined, making this if case useless and spewing errors.
// What's the intent?
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment