small correction in user info
This commit is contained in:
@@ -204,7 +204,12 @@ function current_user_infos_CIPF($atts) {
|
||||
* only return the first argument (that is not 'author')
|
||||
*
|
||||
*/
|
||||
$query = $atts[0];
|
||||
if (is_array($atts))
|
||||
$query = reset($atts);
|
||||
else if (is_string($atts))
|
||||
$query = $atts;
|
||||
else
|
||||
return '';
|
||||
$output = $current_user->$query;
|
||||
return format_user_info_CIPF($output, $query, $current_user, $user_id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user