[pLog-svn] r3958 - plog/branches/lifetype-1.1.1/class/net/http/phpsniff

oscar at devel.lifetype.net oscar at devel.lifetype.net
Wed Sep 13 10:30:17 GMT 2006


Author: oscar
Date: 2006-09-13 10:30:16 +0000 (Wed, 13 Sep 2006)
New Revision: 3958

Modified:
   plog/branches/lifetype-1.1.1/class/net/http/phpsniff/phpSniff.class.php
Log:
Fixed a warning message in phpSniff. It's not our package, but we can fix this for the time being until we upgrade to a newer version.


Modified: plog/branches/lifetype-1.1.1/class/net/http/phpsniff/phpSniff.class.php
===================================================================
--- plog/branches/lifetype-1.1.1/class/net/http/phpsniff/phpSniff.class.php	2006-09-12 16:24:59 UTC (rev 3957)
+++ plog/branches/lifetype-1.1.1/class/net/http/phpsniff/phpSniff.class.php	2006-09-13 10:30:16 UTC (rev 3958)
@@ -192,6 +192,8 @@
         if(empty($UA)) $UA = getenv('HTTP_USER_AGENT');
         if(empty($UA)) {
             global $HTTP_SERVER_VARS;
+            if( !isset( $_SERVER['HTTP_USER_AGENT'] )) $_SERVER['HTTP_USER_AGENT'] = '';
+            if( !isset( $HTTP_SERVER_VARS['HTTP_USER_AGENT'] )) $HTTP_SERVER_VARS['HTTP_USER_AGENT'] = '';
             $UA = ( phpversion() >= "4.1.0"  ) ? $_SERVER['HTTP_USER_AGENT'] : $HTTP_SERVER_VARS['HTTP_USER_AGENT'];
         }
         // 20020910 :: rraymond



More information about the pLog-svn mailing list