Explorar o código

Fix for a broken query when titlesEnable is set to false - Thanks Wanchope for reporting

Signed-off-by: emanuele <[email protected]>
emanuele %!s(int64=11) %!d(string=hai) anos
pai
achega
679a769e7b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Sources/Load.php

+ 1 - 1
Sources/Load.php

@@ -913,7 +913,7 @@ function loadMemberData($users, $is_name = false, $set = 'normal')
 			mem.karma_good, mem.id_post_group, mem.karma_bad, mem.lngfile, mem.id_group, mem.time_offset, mem.show_online,
 			mg.online_color AS member_group_color, IFNULL(mg.group_name, {string:blank_string}) AS member_group,
 			pg.online_color AS post_group_color, IFNULL(pg.group_name, {string:blank_string}) AS post_group,
-			mem.is_activated, mem.warning' . (!empty($modSettings['titlesEnable']) ? ', mem.usertitle, ' : '') . '
+			mem.is_activated, mem.warning, ' . (!empty($modSettings['titlesEnable']) ? 'mem.usertitle, ' : '') . '
 			CASE WHEN mem.id_group = 0 OR mg.icons = {string:blank_string} THEN pg.icons ELSE mg.icons END AS icons';
 	$select_tables = '
 			LEFT JOIN {db_prefix}log_online AS lo ON (lo.id_member = mem.id_member)