Skip to content
Permalink
Browse files

Fixed Buildr member-box query

  • Loading branch information...
chrisgraham committed Jun 9, 2019
1 parent 0d04604 commit 12afbb3fec1e1db1e63649ebe177985c4961c27f
Showing with 2 additions and 2 deletions.
  1. +2 −2 sources_custom/hooks/modules/topicview/buildr.php
@@ -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');

0 comments on commit 12afbb3

Please sign in to comment.
You can’t perform that action at this time.