no warning on missing user agent

git-svn-id: http://piwigo.org/svn/trunk@27867 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2014-03-21 05:13:06 +00:00
parent e4d1fc9d90
commit b3f3f8c38b

View File

@@ -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',