Project

General

Profile

Feature proposal #2444 » 2444.patch

krileon, 21 March 2011 16:12

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 );
}
} else {
$var = null;
}
(1-1/2)