Project

General

Profile

2864.patch

krileon, 01 November 2011 05:01 PM

View differences:

administrator/components/com_comprofiler/library/cb/cb.tables.php
1108 1108
		$_CB_database->setQuery( $query );
1109 1109
		$this->usertype								=	$_CB_database->loadResult();
1110 1110

  
1111
		if ( ( $this->confirmed == 0 ) && ( $this->cbactivation == '' ) && ( $ueConfig['reg_confirmation'] != 0 ) ) {
1112
			$this->_setActivationCode();
1113
		}
1114

  
1115 1111
		// creates CMS and CB objects:
1116 1112
		$this->_mapUsers();
1117 1113

  
......
1149 1145
				$this->_comprofilerUser->id		=	$this->_cmsUser->id;
1150 1146
			}
1151 1147

  
1148
			if ( ( $this->confirmed == 0 ) && ( $this->cbactivation == '' ) && ( $ueConfig['reg_confirmation'] != 0 ) ) {
1149
				$this->_setActivationCode();
1150
			}
1151

  
1152 1152
			// stores CB user into comprofiler: if new, inserts, otherwise updates:
1153 1153
			if ( $this->user_id == 0 ) {
1154 1154
				$this->user_id						=	$this->_cmsUser->id;