Permalink
Browse files

Fix to use oyster card number provided in config

Where multiple oyster cards exist, a php error occurs as $cardNumber is undefined. $cardNumber should contain the card number provided in the config files (and held locally as $this->card).
  • Loading branch information...
1 parent 87255d5 commit d8fec19c8dfea91e79473b8753dc6b33a51c2fca @daibach daibach committed Mar 26, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/script/fetch.class.php
@@ -150,6 +150,7 @@ protected function fetchHistory () {
$cardNumber = $matches[1];
} else if ($this->card) {
// Need to select a card number
+ $cardNumber = $this->card;
$browser->setFieldById('select_card_no', $cardNumber);
$page = $browser->submitFormById('selectCardForm');
if (preg_match('/Card No: (\d+)/', $page, $matches)) {

0 comments on commit d8fec19

Please sign in to comment.