projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6cc13a
)
Don't access HTTP_USER_AGENT if it doesn't exist
author
Mikael Nordfeldth
<mmn@hethane.se>
Tue, 15 Jul 2014 18:38:58 +0000
(20:38 +0200)
committer
Mikael Nordfeldth
<mmn@hethane.se>
Tue, 15 Jul 2014 18:38:58 +0000
(20:38 +0200)
plugins/MobileProfile/MobileProfilePlugin.php
patch
|
blob
|
history
diff --git
a/plugins/MobileProfile/MobileProfilePlugin.php
b/plugins/MobileProfile/MobileProfilePlugin.php
index bf16cd9f56690fe6c06042b4d123d420f63f8a2b..98fcb472fae2214967f944ce3a2a1722693e300b 100644
(file)
--- a/
plugins/MobileProfile/MobileProfilePlugin.php
+++ b/
plugins/MobileProfile/MobileProfilePlugin.php
@@
-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 {
+ } else
if (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?