small correction in user info

This commit is contained in:
asus
2024-03-07 15:13:16 +01:00
parent 60f46265c2
commit b244b59deb

View File

@@ -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);
}