Project

General

Profile

Bug #3556 » 3556_library_cb_cb_tables.patch

Apply this patch OR - beat, 19 June 2012 16:09

View differences:

administrator/components/com_comprofiler/library/cb/cb.tables.php (revision )
parent::moscomprofiler( $db );
if ( checkJversion() == 2 ) {
$this->_cmsUserTableGid = 'usertype';
$this->_reinitNonComprofileVars();
}
}
/**
* Resets public properties
*
* @param mixed $value The value to set all properties to, default is null
*/
function reset( $value=null ) {
parent::reset( $value );
$this->_reinitNonComprofileVars();
}
/**
* Initializes non-comprofiler vars for CMS users table
*
* @return void
*/
protected function _reinitNonComprofileVars() {
if ( version_compare( checkJversion( 'release' ), '2.5', '>' ) || ( ( checkJversion( 'release' ) == '2.5' ) && ( checkJversion( 'dev_level' ) >= 5 ) ) ) {
$this->_nonComprofilerVars[] = 'lastResetTime';
$this->_nonComprofilerVars[] = 'resetCount';
}
}
/**
(1-1/2)