Changeset 31972 for extensions/MenuRandomPhoto/main.inc.php
- Timestamp:
- Dec 31, 2018, 11:29:24 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/MenuRandomPhoto/main.inc.php
r31883 r31972 2 2 /* 3 3 Plugin Name: Menu Random Photo 4 Version: 2.8. 04 Version: 2.8.5 5 5 Description: Adds a random picture block into menu 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=778 … … 124 124 $returned=array(); 125 125 126 if (preg_match('/(Googlebot|bingbot|Baiduspider|yandex|AhrefsBot|msnbot|NCollector)/', $_SERVER["HTTP_USER_AGENT"])) 126 if (!isset($_SERVER["HTTP_USER_AGENT"]) || 127 preg_match('/(Googlebot|bingbot|Baiduspider|yandex|AhrefsBot|msnbot|NCollector)/', $_SERVER["HTTP_USER_AGENT"])) 127 128 { 128 129 return($returned);
Note: See TracChangeset
for help on using the changeset viewer.