From d32bf132413c22c5a19966160fcd574346f63b24 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Sun, 14 Apr 2019 23:30:50 +0200 Subject: [PATCH] user_list_cells Real name shows empty when not entered in user table. @kvvaradha. --- includes/ui/ui_lists.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index c70343af..8e4da29d 100644 --- a/includes/ui/ui_lists.inc +++ b/includes/ui/ui_lists.inc @@ -2691,7 +2691,7 @@ function accounts_type_list_row($label, $name, $selected_id=null) function users_list_cells($label, $name, $selected_id=null, $submit_on_change=false, $spec_opt=true) { $where = false; - $sql = " SELECT user_id, real_name FROM ".TB_PREF."users"; + $sql = " SELECT user_id, IF(real_name = ' ', user_id, real_name) FROM ".TB_PREF."users"; if ($label != null) echo "$label\n"; -- 2.30.2