Permalink
Browse files

Avoid errors when HTTP_USER_AGENT is not set. Usually some dodgy hack…

… attempt.
  • Loading branch information...
tbar0970 committed Oct 9, 2017
1 parent abbdbba commit f39467686c9d6e50c3db9fa252a4b6cf176ec279
Showing with 1 addition and 1 deletion.
  1. +1 −1 templates/head.template.php
@@ -7,7 +7,7 @@
</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0<?php
if (FALSE === strpos($_SERVER['HTTP_USER_AGENT'], 'iPad')) echo ', user-scalable=no';
if (FALSE === strpos(array_get($_SERVER, 'HTTP_USER_AGENT', ''), 'iPad')) echo ', user-scalable=no';
?>">
<!--[if IE]>
<link type="text/css" rel="stylesheet" href="<?php echo BASE_URL; ?>resources/css/jethro_msie.css" />

0 comments on commit f394676

Please sign in to comment.