Index: /FCKeditor/trunk/fckeditor.php
===================================================================
--- /FCKeditor/trunk/fckeditor.php	(revision 1573)
+++ /FCKeditor/trunk/fckeditor.php	(revision 1574)
@@ -28,16 +28,18 @@
 function FCKeditor_IsCompatibleBrowser()
 {
-	global $HTTP_USER_AGENT ;
-
-	if ( !isset( $_SERVER ) ) {
+	if ( isset( $_SERVER ) ) {
+		$sAgent = $_SERVER['HTTP_USER_AGENT'] ;
+	}
+	else {
 		global $HTTP_SERVER_VARS ;
-	    $_SERVER = $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 ( isset( $HTTP_USER_AGENT ) )
-		$sAgent = $HTTP_USER_AGENT ;
-	else
-		$sAgent = $_SERVER['HTTP_USER_AGENT'] ;
-
+	
 	if ( strpos($sAgent, 'MSIE') !== false && strpos($sAgent, 'mac') === false && strpos($sAgent, 'Opera') === false )
 	{
@@ -68,4 +70,2 @@
 else
 	include_once( 'fckeditor_php5.php' ) ;
-
-?>
Index: /FCKeditor/trunk/fckeditor_php4.php
===================================================================
--- /FCKeditor/trunk/fckeditor_php4.php	(revision 1573)
+++ /FCKeditor/trunk/fckeditor_php4.php	(revision 1574)
@@ -142,4 +142,2 @@
 	}
 }
-
-?>
Index: /FCKeditor/trunk/fckeditor_php5.php
===================================================================
--- /FCKeditor/trunk/fckeditor_php5.php	(revision 1573)
+++ /FCKeditor/trunk/fckeditor_php5.php	(revision 1574)
@@ -137,4 +137,2 @@
 	}
 }
-
-?>
