Skip to content

Commit

Permalink
removing unnecessary queries
Browse files Browse the repository at this point in the history
  • Loading branch information
MMO-Indie committed Nov 22, 2011
1 parent d116e0a commit c0c1fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Templates/a2b/newdorf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ echo '</pre>';
$mode = CP;
$total = count($database->getProfileVillages($session->uid));
$need_cps = ${'cp'.$mode}[$total];
$cps = $database->getUserField($session->uid, 'cp',0);
$cps = $session->cp;

if($cps >= $need_cps) {
?>
Expand Down

0 comments on commit c0c1fe3

Please sign in to comment.