Feature proposal #2444 » 2444.patch
administrator/components/com_comprofiler/plugin.foundation.php | ||
---|---|---|
$value = $conditions[4][$i];
|
||
if ( $user === null ) {
|
||
$var = '0';
|
||
} elseif ( $field && isset( $user->_cbuser->$field ) ) {
|
||
$var = $user->_cbuser->$field;
|
||
} elseif ( $field && isset( $user->_cbuser ) ) {
|
||
$var = $user->getField( $field, null, 'php' );
|
||
|
||
if ( is_array( $var ) ) {
|
||
$var= array_shift( $var );
|
||
}
|
||
} else {
|
||
$var = null;
|
||
}
|