Changeset 21587


Ignore:
Timestamp:
03/15/13 21:14:45 (6 years ago)
Author:
Eric
Message:

Avoid error when using web API (see here for details : http://fr.piwigo.org/forum/viewtopic.php?id=23717)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/whois_online/main.inc.php

    r21237 r21587  
    3333// rel="nofollow" they follow the link. By deactivation this plugin to 
    3434// robots, we avoid wasting resources on servers. 
    35 if (preg_match('/(Googlebot|bingbot|Baiduspider|yandex|AhrefsBot|msnbot)/', $_SERVER["HTTP_USER_AGENT"])) 
     35if (preg_match('/(Googlebot|bingbot|Baiduspider|yandex|AhrefsBot|msnbot)/', isset($_SERVER["HTTP_USER_AGENT"]))) 
    3636{ 
    3737  return; 
Note: See TracChangeset for help on using the changeset viewer.