[21324] Fixing globals

Caeies <[email protected]> Wed, 08 Sep 2010 16:23:36 +0000
Newsgroups gmane.comp.web.phpgroupware.cvs
Message-ID <[email protected]>
Revision: 21324
          http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=21324
Author:   Caeies
Date:     2010-09-08 16:23:35 +0000 (Wed, 08 Sep 2010)
Log Message:
-----------
Fixing globals

Modified Paths:
--------------
    modules/email/branches/branch_0_9_16/inc/class.bosend.inc.php

Modified: modules/email/branches/branch_0_9_16/inc/class.bosend.inc.php
===================================================================
--- modules/email/branches/branch_0_9_16/inc/class.bosend.inc.php	2010-09-08 16:22:39 UTC (rev 21323)
+++ modules/email/branches/branch_0_9_16/inc/class.bosend.inc.php	2010-09-08 16:23:35 UTC (rev 21324)
@@ -74,6 +74,10 @@
 			{
 				$got_ip = $GLOBALS['HTTP_SERVER_VARS']['REMOTE_ADDR'];
 			}
+			elseif (isset($GLOBALS['_SERVER']['REMOTE_ADDR']))
+			{
+				$got_ip = $GLOBALS['_SERVER']['REMOTE_ADDR'];
+			}
 			
 			// did we get anything useful ?
 			if (trim((string)$got_ip) == '')