Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #131 from Hilarious001/patch-20
Browse files Browse the repository at this point in the history
Fixed "Undefined index: id", if research network is enabled.
  • Loading branch information
jkroepke committed Jan 31, 2016
2 parents 8a4ddfc + 1ac3898 commit 8149c52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/pages/game/ShowResearchPage.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private function CancelBuildingFromQueue()
continue;

if($ListIDArray[4] != $PLANET['id']) {
$sql = "SELECT :resource6, :resource31 FROM %%PLANETS%% WHERE id = :id;";
$sql = "SELECT :resource6, :resource31, id FROM %%PLANETS%% WHERE id = :id;";
$CPLANET = $db->selectSingle($sql, array(
':resource6' => $resource[6],
':resource31' => $resource[31],
Expand Down Expand Up @@ -402,4 +402,4 @@ public function show()

$this->display('page.research.default.tpl');
}
}
}

0 comments on commit 8149c52

Please sign in to comment.