Feature proposal #2444 » 2444-rev1.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 );
|
||
}
|
||
|
||
if ( ( ! $var ) && isset( $user->_cbuser->$field ) ) {
|
||
$var= $user->_cbuser->$field;
|
||
}
|
||
} else {
|
||
$var = null;
|
||
}
|
- « Previous
- 1
- 2
- Next »