aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2014-03-21 05:13:06 +0000
committerrvelices <rv-github@modusoptimus.com>2014-03-21 05:13:06 +0000
commitb3f3f8c38b58ae32503edfc5533cd97b71a8fe8a (patch)
tree91e4352da97fb1d642af59fc4a0ba243a72ed9a9
parente4d1fc9d90b2db60172edef87c5c9185c1c423fd (diff)
no warning on missing user agent
git-svn-id: http://piwigo.org/svn/trunk@27867 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--picture.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/picture.php b/picture.php
index 98c9593fe..10c39a789 100644
--- a/picture.php
+++ b/picture.php
@@ -946,7 +946,7 @@ $template->assign( 'ELEMENT_CONTENT', $element_content );
if (isset($picture['next'])
and $picture['next']['src_image']->is_original()
and $template->get_template_vars('U_PREFETCH') == null
- and strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome/') === false)
+ and strpos(@$_SERVER['HTTP_USER_AGENT'], 'Chrome/') === false)
{
$template->assign(
'U_PREFETCH',