Project

General

Profile

Feature proposal #2444 » 2444-rev1.patch

krileon, 21 March 2011 16:19

View differences:

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;
}
(2-2/2)