From b3f3f8c38b58ae32503edfc5533cd97b71a8fe8a Mon Sep 17 00:00:00 2001 From: rvelices Date: Fri, 21 Mar 2014 05:13:06 +0000 Subject: no warning on missing user agent git-svn-id: http://piwigo.org/svn/trunk@27867 68402e56-0260-453c-a942-63ccdbb3a9ee --- picture.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'picture.php') 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', -- cgit v1.2.3