Index: /trunk/xpressme_integration_kit/class/userInfo_class.php
===================================================================
--- /trunk/xpressme_integration_kit/class/userInfo_class.php	(revision 783)
+++ /trunk/xpressme_integration_kit/class/userInfo_class.php	(revision 784)
@@ -26,21 +26,23 @@
     	global $xoopsUser,$xoopsModule;
     	
-    	if(empty($xoopsUser)) $this->is_logon = false;
-    	$this->is_logon = true;
-    	$this->user_name = $xoopsUser->getVar('uname');
-    	if($this->user_name == '') {
-        	$this->user_name = $xoopsUser->getVar('name');
-    	}
-    	$this->user_id = $xoopsUser->getVar('uid');
-    	$this->user_group = $xoopsUser->getGroups();
-    	$moduleperm_handler =& xoops_gethandler('groupperm');
-    	if ($moduleperm_handler->checkRight('module_read',
-				$xoopsModule->getVar('mid'), $xoopsUser->getGroups())) {
-			$this->is_mod_read = true;
-		} else {
-			$this->is_mod_read = false;
+    	if(empty($xoopsUser)){
+    		$this->is_logon = false;
+    	} else {
+    		$this->is_logon = true;
+	    	$this->user_name = $xoopsUser->getVar('uname');
+	    	if($this->user_name == '') {
+	        	$this->user_name = $xoopsUser->getVar('name');
+	    	}
+	    	$this->user_id = $xoopsUser->getVar('uid');
+	    	$this->user_group = $xoopsUser->getGroups();
+	    	$moduleperm_handler =& xoops_gethandler('groupperm');
+	    	if ($moduleperm_handler->checkRight('module_read',
+					$xoopsModule->getVar('mid'), $xoopsUser->getGroups())) {
+				$this->is_mod_read = true;
+			} else {
+				$this->is_mod_read = false;
+			}
+			$is_mod_admin = $xoopsUser->isAdmin($xoopsModule->getVar('mid'));
 		}
-		$is_mod_admin = $xoopsUser->isAdmin($xoopsModule->getVar('mid'));
-		
     }
 /*    
