Index: D:/Projects/Eclipse workspace/FCKeditor/fckeditor.php
===================================================================
--- D:/Projects/Eclipse workspace/FCKeditor/fckeditor.php	(revision 1467)
+++ D:/Projects/Eclipse workspace/FCKeditor/fckeditor.php	(working copy)
@@ -27,18 +27,25 @@
 
 function FCKeditor_IsCompatibleBrowser()
 {
-	global $HTTP_USER_AGENT ;
-
-	if ( !isset( $_SERVER ) ) {
-		global $HTTP_SERVER_VARS ;
-	    $_SERVER = $HTTP_SERVER_VARS ;
+	if ( isset( $_SERVER ) )
+	{
+		$sAgent = $_SERVER['HTTP_USER_AGENT'] ;
 	}
-		
-	if ( isset( $HTTP_USER_AGENT ) )
-		$sAgent = $HTTP_USER_AGENT ;
 	else
-		$sAgent = $_SERVER['HTTP_USER_AGENT'] ;
+	{
+		global $HTTP_SERVER_VARS ;
 
+		if ( isset( $HTTP_SERVER_VARS ) )
+		{
+			$sAgent = $HTTP_SERVER_VARS['HTTP_USER_AGENT'] ;
+		}
+		else
+		{
+			global $HTTP_USER_AGENT ;
+			$sAgent = $HTTP_USER_AGENT ;
+		}
+	}
+
 	if ( strpos($sAgent, 'MSIE') !== false && strpos($sAgent, 'mac') === false && strpos($sAgent, 'Opera') === false )
 	{
 		$iVersion = (float)substr($sAgent, strpos($sAgent, 'MSIE') + 5, 3) ;
@@ -67,5 +74,3 @@
 	include_once( 'fckeditor_php4.php' ) ;
 else
 	include_once( 'fckeditor_php5.php' ) ;
-
-?>
