diff --git a/Admin/Templates/map.tpl b/Admin/Templates/map.tpl index a6a6f198..d95fedba 100644 --- a/Admin/Templates/map.tpl +++ b/Admin/Templates/map.tpl @@ -71,7 +71,15 @@ if ($check1=="" && $check2=="") {$criteria="WHERE tribe=0)";} $p_village=mysqli_real_escape_string($GLOBALS["link"], $p_array['name']); $p_coor="(".$p_array['x']."|".$p_array['y'].")"; $p_pop=$p_array['pop']; - $p_tribe=$array_tribe[$p_array['tribe']]; + + // natars have a NULL tribe, since they don't have user accounts + if (!$p_array['tribe']) { + $p_tribe = $array_tribe[TRIBE5]; + $p_array['tribe'] = 5; + } else { + $p_tribe=$array_tribe[$p_array['tribe']]; + } + $p_info="
  • Player name : $p_name
  • Village name : $p_village
  • Coordinat : $p_coor
  • Population : $p_pop
  • Tribe : $p_tribe
  • ')\">
    "; //250px=0 $xdiv=250/WORLD_MAX; diff --git a/README b/README index 83212c23..cae30556 100644 --- a/README +++ b/README @@ -23,6 +23,8 @@ martinambrus changes: 11. security tightened to try and prevent MySQL injections from in-game 12. assigning link to alliance forum now works 13. alliance description now really editable +14. Admin SQL injection fixes +15. fix for map not showing natar villages Shadowss changes: