Skip to content

Commit

Permalink
Fixed Buildr member-box query
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgraham committed Jun 9, 2019
1 parent 0d04604 commit 12afbb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources_custom/hooks/modules/topicview/buildr.php
Expand Up @@ -46,8 +46,8 @@ public function run($member_id)
return null;
}

$rows = $GLOBALS['SITE_DB']->query_select('w_members m JOIN ' . $GLOBALS['SITE_DB']->get_table_prefix() . 'w_realms r ON m.location_realm=r.id JOIN ' . $GLOBALS['SITE_DB']->get_table_prefix() . 'w_rooms rm ON r.location_x=rm.location_x AND r.location_y=rm.location_y AND r.location_realm=rm.location_realm', array('m.*', 'r.*', 'rm.name AS room_name'), array('m.id' => $member_id), '', 1, 0, true);
if ((!is_null($rows)) && (array_key_exists(0, $rows))) {
$rows = $GLOBALS['SITE_DB']->query_select('w_members m JOIN ' . $GLOBALS['SITE_DB']->get_table_prefix() . 'w_realms r ON m.location_realm=r.id JOIN ' . $GLOBALS['SITE_DB']->get_table_prefix() . 'w_rooms rm ON m.location_x=rm.location_x AND m.location_y=rm.location_y AND m.location_realm=rm.location_realm', array('m.*', 'r.*', 'rm.name AS room_name'), array('m.id' => $member_id), '', 1);
if (array_key_exists(0, $rows)) {
$row = $rows[0];

require_lang('buildr');
Expand Down

0 comments on commit 12afbb3

Please sign in to comment.