Index: trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php
===================================================================
--- trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php	(revision 274)
+++ trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php	(revision 276)
@@ -767,5 +767,6 @@
 	// Quick check. If we have no posts at all, abort!
 	if ( !$posts ) {
-		$gotsome = $wpdb->get_var("SELECT ID from $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' ORDER BY post_date DESC LIMIT 1");
+//		$gotsome = $wpdb->get_var("SELECT ID from $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' ORDER BY post_date DESC LIMIT 1");
+		$gotsome = $wpdb->get_var("SELECT 1 as test FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' LIMIT 1"); //WP2.8
 		if ( !$gotsome )
 			return;
Index: trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/user_sync_xoops.php
===================================================================
--- trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/user_sync_xoops.php	(revision 274)
+++ trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/user_sync_xoops.php	(revision 276)
@@ -57,5 +57,12 @@
 		if ($user_group->group_type == 'Admin'){
 			$ans['capabillities'] = 'administrator';
-			$ans['allway_update'] = 0;
+			if ($user_group->groupid =1){
+				//It always rewrites it as WordPress adninistrator for an initial admin group of XOOPS.	
+				$ans['allway_update'] = 1;
+			} else {
+				// admin groups other than initial admin group of XOOPS 
+				// It group rewrites group_type of the data base in Admin.
+				$ans['allway_update'] = $user_group->login_all; 
+			}
 			break;
 		}
