@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | */ |
12 | 12 | public function getDataSet() |
13 | 13 | { |
14 | - return $this->createMySQLXMLDataSet(dirname(__FILE__).'/_fixtures/alertspage.xml'); |
|
14 | + return $this->createMySQLXMLDataSet(dirname(__FILE__) . '/_fixtures/alertspage.xml'); |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | private function fetch_page($vars) |
@@ -21,37 +21,37 @@ discard block |
||
21 | 21 | |
22 | 22 | public function testFetchPage() |
23 | 23 | { |
24 | - $page = $this->fetch_page( array() ); |
|
24 | + $page = $this->fetch_page(array()); |
|
25 | 25 | $this->assertStringContainsString('TheyWorkForYou Email Alerts', $page); |
26 | 26 | } |
27 | 27 | |
28 | 28 | public function testKeywordOnly() { |
29 | - $page = $this->fetch_page( array( 'alertsearch' => 'elephant') ); |
|
29 | + $page = $this->fetch_page(array('alertsearch' => 'elephant')); |
|
30 | 30 | $this->assertStringContainsString('Receive alerts when [elephant] is mentioned', $page); |
31 | 31 | } |
32 | 32 | |
33 | 33 | public function testPostCodeOnly() { |
34 | - $page = $this->fetch_page( array( 'alertsearch' => 'SE17 3HE') ); |
|
34 | + $page = $this->fetch_page(array('alertsearch' => 'SE17 3HE')); |
|
35 | 35 | $this->assertStringContainsString('when Mrs Test Current-MP', $page); |
36 | 36 | } |
37 | 37 | |
38 | 38 | public function testPostCodeWithKeyWord() |
39 | 39 | { |
40 | - $page = $this->fetch_page( array( 'alertsearch' => 'SE17 3HE elephant') ); |
|
40 | + $page = $this->fetch_page(array('alertsearch' => 'SE17 3HE elephant')); |
|
41 | 41 | $this->assertStringContainsString('You have used a postcode and something else', $page); |
42 | 42 | $this->assertStringContainsString('Mentions of [elephant] by your MP, Mrs Test Current-MP', $page); |
43 | 43 | $this->assertStringNotContainsString('by your MSP', $page); |
44 | 44 | } |
45 | 45 | |
46 | 46 | public function testScottishPostcodeWithKeyword() { |
47 | - $page = $this->fetch_page( array( 'alertsearch' => 'PH6 2DB elephant') ); |
|
47 | + $page = $this->fetch_page(array('alertsearch' => 'PH6 2DB elephant')); |
|
48 | 48 | $this->assertStringContainsString('You have used a postcode and something else', $page); |
49 | 49 | $this->assertStringContainsString('Mentions of [elephant] by your MP, Mr Test2 Current-MP', $page); |
50 | 50 | $this->assertStringContainsString('Mentions of [elephant] by your MSP, Mrs Test Current-MSP', $page); |
51 | 51 | } |
52 | 52 | |
53 | 53 | public function testPostcodeAndKeywordWithNoSittingMP() { |
54 | - $page = $this->fetch_page( array( 'alertsearch' => 'OX1 4LF elephant') ); |
|
54 | + $page = $this->fetch_page(array('alertsearch' => 'OX1 4LF elephant')); |
|
55 | 55 | $this->assertStringContainsString('You have used a postcode and something else', $page); |
56 | 56 | $this->assertStringNotContainsString('Did you mean to get alerts for when your MP', $page); |
57 | 57 | } |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | First some things to help make our PHP nicer and betterer |
5 | 5 | ********************************************************************************/ |
6 | 6 | |
7 | -error_reporting (E_ALL ^ E_DEPRECATED); |
|
7 | +error_reporting(E_ALL ^ E_DEPRECATED); |
|
8 | 8 | |
9 | 9 | /******************************************************************************** |
10 | 10 | Now some constants that are the same for live and dev versions |
@@ -12,21 +12,21 @@ discard block |
||
12 | 12 | ********************************************************************************/ |
13 | 13 | |
14 | 14 | // In case we need to switch these off globally at some point... |
15 | -define ("ALLOWCOMMENTS", true); |
|
15 | +define("ALLOWCOMMENTS", true); |
|
16 | 16 | |
17 | 17 | // These variables are so we can keep date/time formats consistent across the site |
18 | 18 | // and change them easily. |
19 | 19 | // Formats here: http://www.php.net/manual/en/function.date.php |
20 | -define ("LONGERDATEFORMAT", "%A, %e %B %Y");// Monday, 31 December 2003 |
|
21 | -define ("LONGDATEFORMAT", "%e %B %Y"); // 31 December 2003 |
|
22 | -define ("SHORTDATEFORMAT", "%e %b %Y"); // 31 Dec 2003 |
|
23 | -define ("TIMEFORMAT", "%l:%M %p"); // 11:59 pm |
|
20 | +define("LONGERDATEFORMAT", "%A, %e %B %Y"); // Monday, 31 December 2003 |
|
21 | +define("LONGDATEFORMAT", "%e %B %Y"); // 31 December 2003 |
|
22 | +define("SHORTDATEFORMAT", "%e %b %Y"); // 31 Dec 2003 |
|
23 | +define("TIMEFORMAT", "%l:%M %p"); // 11:59 pm |
|
24 | 24 | |
25 | -define ("SHORTDATEFORMAT_SQL", "%e %b %Y"); // 31 Dec 2003 |
|
26 | -define ("TIMEFORMAT_SQL", "%l:%i %p"); // 11:59 PM |
|
25 | +define("SHORTDATEFORMAT_SQL", "%e %b %Y"); // 31 Dec 2003 |
|
26 | +define("TIMEFORMAT_SQL", "%l:%i %p"); // 11:59 PM |
|
27 | 27 | |
28 | 28 | // Where we store the postcode of users if they search for an MP by postcode. |
29 | -define ('POSTCODE_COOKIE', 'eppc'); |
|
29 | +define('POSTCODE_COOKIE', 'eppc'); |
|
30 | 30 | |
31 | 31 | /******************************************************************************** |
32 | 32 | And now all the files we'll include on every page. |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | textdomain('TheyWorkForYou'); |
53 | 53 | |
54 | 54 | // Set the default timezone |
55 | -if(function_exists('date_default_timezone_set')) { |
|
55 | +if (function_exists('date_default_timezone_set')) { |
|
56 | 56 | date_default_timezone_set(TIMEZONE); |
57 | 57 | } |
58 | 58 | |
@@ -83,39 +83,39 @@ discard block |
||
83 | 83 | |
84 | 84 | // The time the page starts, so we can display the total at the end. |
85 | 85 | // getmicrotime() is in utiltity.php. |
86 | -define ("STARTTIME", getmicrotime()); |
|
86 | +define("STARTTIME", getmicrotime()); |
|
87 | 87 | if (!isset($_SERVER['WINDIR'])) { |
88 | 88 | $rusage = getrusage(); |
89 | - define ('STARTTIMES', $rusage['ru_stime.tv_sec']*1000000 + $rusage['ru_stime.tv_usec']); |
|
90 | - define ('STARTTIMEU', $rusage['ru_utime.tv_sec']*1000000 + $rusage['ru_utime.tv_usec']); |
|
89 | + define('STARTTIMES', $rusage['ru_stime.tv_sec'] * 1000000 + $rusage['ru_stime.tv_usec']); |
|
90 | + define('STARTTIMEU', $rusage['ru_utime.tv_sec'] * 1000000 + $rusage['ru_utime.tv_usec']); |
|
91 | 91 | } |
92 | 92 | |
93 | 93 | $DATA = new \MySociety\TheyWorkForYou\Data; |
94 | 94 | |
95 | 95 | class ParlDB extends \MySociety\TheyWorkForYou\Db\Connection { |
96 | 96 | public function __construct() { |
97 | - $this->init (OPTION_TWFY_DB_HOST, OPTION_TWFY_DB_USER, OPTION_TWFY_DB_PASS, OPTION_TWFY_DB_NAME); |
|
97 | + $this->init(OPTION_TWFY_DB_HOST, OPTION_TWFY_DB_USER, OPTION_TWFY_DB_PASS, OPTION_TWFY_DB_NAME); |
|
98 | 98 | } |
99 | 99 | } |
100 | 100 | |
101 | 101 | $filter = new \MySociety\TheyWorkForYou\Utility\LibFilter; |
102 | 102 | |
103 | -include_once (INCLUDESPATH."easyparliament/user.php"); |
|
103 | +include_once (INCLUDESPATH . "easyparliament/user.php"); |
|
104 | 104 | |
105 | 105 | // Test to see if this is a new-style template using the renderer class. |
106 | -if (! isset($new_style_template) or $new_style_template !== true) { |
|
106 | +if (!isset($new_style_template) or $new_style_template !== true) { |
|
107 | 107 | |
108 | 108 | // This is an old-style page. Use the old page classes. |
109 | - include_once (INCLUDESPATH."easyparliament/page.php"); |
|
109 | + include_once (INCLUDESPATH . "easyparliament/page.php"); |
|
110 | 110 | |
111 | 111 | } |
112 | 112 | |
113 | -include_once (INCLUDESPATH."easyparliament/hansardlist.php"); |
|
114 | -include_once (INCLUDESPATH."dbtypes.php"); |
|
115 | -include_once (INCLUDESPATH."easyparliament/commentlist.php"); |
|
116 | -include_once (INCLUDESPATH."easyparliament/comment.php"); |
|
113 | +include_once (INCLUDESPATH . "easyparliament/hansardlist.php"); |
|
114 | +include_once (INCLUDESPATH . "dbtypes.php"); |
|
115 | +include_once (INCLUDESPATH . "easyparliament/commentlist.php"); |
|
116 | +include_once (INCLUDESPATH . "easyparliament/comment.php"); |
|
117 | 117 | |
118 | 118 | // Added in as new module by Richard Allan MP |
119 | -include_once (INCLUDESPATH."easyparliament/alert.php"); |
|
119 | +include_once (INCLUDESPATH . "easyparliament/alert.php"); |
|
120 | 120 | |
121 | 121 | twfy_debug_timestamp("at end of init.php"); |
@@ -17,17 +17,17 @@ discard block |
||
17 | 17 | } |
18 | 18 | |
19 | 19 | private function fetch_division_page() { |
20 | - return $this->fetch_page( array( 'pagetype' => 'divisions', 'pid' => 2, 'policy' => 363, 'url' => '/mp/2/test_current-mp/test_westminster_constituency/divisions' ) ); |
|
20 | + return $this->fetch_page(array('pagetype' => 'divisions', 'pid' => 2, 'policy' => 363, 'url' => '/mp/2/test_current-mp/test_westminster_constituency/divisions')); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | private function fetch_mp_recent_page() |
24 | 24 | { |
25 | - $vars = array( 'pagetype' => 'recent', 'pid' => 2, 'url' => '/mp/2/test_current-mp/test_westminster_constituency/recent' ); |
|
25 | + $vars = array('pagetype' => 'recent', 'pid' => 2, 'url' => '/mp/2/test_current-mp/test_westminster_constituency/recent'); |
|
26 | 26 | return $this->base_fetch_page($vars, 'mp', 'index.php', '/mp/recent.php'); |
27 | 27 | } |
28 | 28 | |
29 | 29 | private function fetch_recent_page() { |
30 | - return $this->base_fetch_page( array('url' => '/divisions' ), 'divisions', 'index.php', '/divisions/index.php' ); |
|
30 | + return $this->base_fetch_page(array('url' => '/divisions'), 'divisions', 'index.php', '/divisions/index.php'); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | |
@@ -57,14 +57,14 @@ discard block |
||
57 | 57 | public function testMPPageContainsAgreement() |
58 | 58 | { |
59 | 59 | // Checks this MP contains a reference to the agreement |
60 | - $page = $this->fetch_page( array( 'pagetype' => 'divisions', 'pid' => 2, 'policy' => 363, 'url' => '/mp/2/test_current-mp/test_westminster_constituency/divisions' ) ); |
|
60 | + $page = $this->fetch_page(array('pagetype' => 'divisions', 'pid' => 2, 'policy' => 363, 'url' => '/mp/2/test_current-mp/test_westminster_constituency/divisions')); |
|
61 | 61 | $this->assertStringContainsString('Example Agreement', $page); |
62 | 62 | } |
63 | 63 | |
64 | 64 | public function testMPPageDoesNotContainsAgreement() |
65 | 65 | { |
66 | 66 | // Checks this MP does not contain agreement - should be out of time scope |
67 | - $page = $this->fetch_page( array( 'pagetype' => 'divisions', 'pid' => 6, 'policy' => 363, 'url' => '/mp/6/test_current-mp/test_westminster_constituency/divisions' ) ); |
|
67 | + $page = $this->fetch_page(array('pagetype' => 'divisions', 'pid' => 6, 'policy' => 363, 'url' => '/mp/6/test_current-mp/test_westminster_constituency/divisions')); |
|
68 | 68 | $this->assertStringNotContainsString('Example Agreement', $page); |
69 | 69 | $this->assertStringNotContainsString('This person has not voted on this policy', $page); |
70 | 70 | |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | } |
129 | 129 | |
130 | 130 | public function testNotEnoughInfoStatement() { |
131 | - return $this->fetch_page( array( 'pagetype' => 'divisions', 'pid' => 2, 'policy' => 810, 'url' => '/mp/2/test_current-mp/test_westminster_constituency/divisions' ) ); |
|
131 | + return $this->fetch_page(array('pagetype' => 'divisions', 'pid' => 2, 'policy' => 810, 'url' => '/mp/2/test_current-mp/test_westminster_constituency/divisions')); |
|
132 | 132 | $this->assertStringContainsString('we don’t have enough information to calculate Test Current-MP’s position', $page); |
133 | 133 | } |
134 | 134 | |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | } |
140 | 140 | |
141 | 141 | public function testSingleDivision() { |
142 | - $page = $this->base_fetch_page( array('url' => '/divisions/division.php', 'vote' => 'pw-3012-01-01-1-commons' ), 'divisions', 'division.php', '/divisions/division.php' ); |
|
142 | + $page = $this->base_fetch_page(array('url' => '/divisions/division.php', 'vote' => 'pw-3012-01-01-1-commons'), 'divisions', 'division.php', '/divisions/division.php'); |
|
143 | 143 | $this->assertStringContainsString('A majority of MPs <b>voted in favour</b> of a thing', $page); |
144 | 144 | $this->assertStringContainsString('Aye: 200', $page); |
145 | 145 | $this->assertStringNotContainsString('No:', $page); # Summary 100, but no actual votes. In reality, summary can only be <= actual. |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | -$nav_items = array ( |
|
2 | +$nav_items = array( |
|
3 | 3 | array('hansard', 'alldebatesfront', 'mps', 'peers', 'wranswmsfront', 'divisions_recent_commons', 'divisions_recent_lords'), |
4 | - array('sp_home', 'sp_home', 'spdebatesfront', 'msps', 'spwransfront', 'divisions_recent_sp'), |
|
4 | + array('sp_home', 'sp_home', 'spdebatesfront', 'msps', 'spwransfront', 'divisions_recent_sp'), |
|
5 | 5 | array('wales_home', 'wales_home', 'wales_debates', 'mss', 'welshlanguage', 'divisions_recent_wales'), |
6 | 6 | array('ni_home', 'ni_home', 'nioverview', 'mlas'), |
7 | 7 | ); |
@@ -28,7 +28,7 @@ |
||
28 | 28 | $level = $matches[1]; |
29 | 29 | $htitle = $matches[2]; |
30 | 30 | $slug = slugify($htitle); |
31 | - if ($level == 1){ |
|
31 | + if ($level == 1) { |
|
32 | 32 | $title_class = "js-toc-title"; |
33 | 33 | } else { |
34 | 34 | $title_class = "js-toc-item"; |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | class Markdown |
21 | 21 | { |
22 | - public function markdown_document($this_page, $show_menu = true){ |
|
22 | + public function markdown_document($this_page, $show_menu = true) { |
|
23 | 23 | // This function takes a markdown file and converts it to HTML |
24 | 24 | |
25 | 25 | $markdown_file = '../../../markdown/' . $this_page . '.md'; |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | $level = $matches[1]; |
38 | 38 | $htitle = $matches[2]; |
39 | 39 | $slug = slugify($htitle); |
40 | - if ($level == 1){ |
|
40 | + if ($level == 1) { |
|
41 | 41 | $title_class = "js-toc-title"; |
42 | 42 | } else { |
43 | 43 | $title_class = "js-toc-item"; |
@@ -25,11 +25,11 @@ discard block |
||
25 | 25 | |
26 | 26 | if ( isset($divisions) && $divisions ) { |
27 | 27 | foreach ($divisions as $division) { |
28 | - $displayed_votes = true; |
|
28 | + $displayed_votes = true; |
|
29 | 29 | |
30 | - if ($current_date != $division['date']) { |
|
30 | + if ($current_date != $division['date']) { |
|
31 | 31 | if ($current_date != '' ) { |
32 | - print('</ul></div>'); |
|
32 | + print('</ul></div>'); |
|
33 | 33 | } |
34 | 34 | $current_date = $division['date']; |
35 | 35 | $sidebar_links[] = $division['date']; |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | <h2><?= strftime('%e %b %Y', strtotime($division['date'])) ?></h2> |
39 | 39 | <ul class="vote-descriptions policy-votes"> |
40 | 40 | <?php } |
41 | - include('_division_description.php'); |
|
41 | + include('_division_description.php'); |
|
42 | 42 | } |
43 | 43 | echo('</div>'); |
44 | 44 | } ?> |
@@ -23,12 +23,12 @@ discard block |
||
23 | 23 | $current_date = ''; |
24 | 24 | $sidebar_links = array(); |
25 | 25 | |
26 | - if ( isset($divisions) && $divisions ) { |
|
26 | + if (isset($divisions) && $divisions) { |
|
27 | 27 | foreach ($divisions as $division) { |
28 | 28 | $displayed_votes = true; |
29 | 29 | |
30 | 30 | if ($current_date != $division['date']) { |
31 | - if ($current_date != '' ) { |
|
31 | + if ($current_date != '') { |
|
32 | 32 | print('</ul></div>'); |
33 | 33 | } |
34 | 34 | $current_date = $division['date']; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | <div> |
57 | 57 | <h3 class="browse-content"><?= gettext('Browse content') ?></h3> |
58 | 58 | <ul> |
59 | - <?php foreach($sidebar_links as $date) { ?> |
|
59 | + <?php foreach ($sidebar_links as $date) { ?> |
|
60 | 60 | <li> |
61 | 61 | <a href="#<?= strftime('%Y-%m-%d', strtotime($date)) ?>"> |
62 | 62 | <?= strftime('%e %b %Y', strtotime($date)) ?> |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | $this->assertEquals($specific_policy["date_max"], "2002-00-00"); |
111 | 111 | } |
112 | 112 | |
113 | - public function testPartyChangeHistoryRobustness(){ |
|
113 | + public function testPartyChangeHistoryRobustness() { |
|
114 | 114 | //The cohort comparison for a set of MPs does not change if one of those MPs changes party *after* the division. |
115 | 115 | //Person 10 and 11 are in party D. |
116 | 116 | //Person 12 is in Party E the whole time. |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | |
250 | 250 | private function getMemberFromPersonId($person_id) |
251 | 251 | { |
252 | - return new MySociety\TheyWorkForYou\Member([ "person_id" => $person_id ]); |
|
252 | + return new MySociety\TheyWorkForYou\Member(["person_id" => $person_id]); |
|
253 | 253 | } |
254 | 254 | |
255 | 255 | public function testMPPartyPolicyTextWhenDiffers() |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | { |
280 | 280 | // When an MP has votes, but there is no broader party policy to compare it to |
281 | 281 | // this goes down a funnel that shows the votes, but does not make the comparison to party. |
282 | - $page = $this->fetch_page(array('pid' => 4, 'pagetype' => 'votes','url' => '/mp/4/test_mp_d/test_westminster_constituency/votes')); |
|
282 | + $page = $this->fetch_page(array('pid' => 4, 'pagetype' => 'votes', 'url' => '/mp/4/test_mp_d/test_westminster_constituency/votes')); |
|
283 | 283 | $this->assertStringContainsString('Test MP D', $page); |
284 | 284 | $this->assertStringContainsString('<li class="vote-description"', $page); |
285 | 285 | $this->assertStringNotContainsString('comparable B Party MPs voted', $page); |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | public function testMPPartyPolicyTextWhenAgrees() |
289 | 289 | { |
290 | 290 | // Test when an MP mostly agrees with their party, as MP G Party 2 does with party G |
291 | - $page = $this->fetch_page(array('pagetype' => 'votes', 'pid' => 16, 'url' => '/mp/16/test_mp_g_party_2/test_westminster_constituency/votes')); |
|
291 | + $page = $this->fetch_page(array('pagetype' => 'votes', 'pid' => 16, 'url' => '/mp/16/test_mp_g_party_2/test_westminster_constituency/votes')); |
|
292 | 292 | $this->assertStringContainsString('Test MP G Party 2', $page); |
293 | 293 | |
294 | 294 | $this->assertStringNotContainsString('sometimes <b>differs</b> from their party colleagues', $page); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | return $q['m']; |
18 | 18 | } |
19 | 19 | |
20 | - private static function fetchQuery($where, $order_by='', $params=null) { |
|
20 | + private static function fetchQuery($where, $order_by = '', $params = null) { |
|
21 | 21 | $query = "SELECT pn.person_id, pn.given_name, pn.family_name, pn.lordofname, pn.title AS name_title, member.house, |
22 | 22 | future.* |
23 | 23 | FROM future |
@@ -83,7 +83,7 @@ |
||
83 | 83 | id="how-much-<?=$payment_type?>-<?=$amount?>" |
84 | 84 | name="how-much" |
85 | 85 | value="<?=$amount?>" |
86 | - required <?= (($how_much == $amount) and ($payment_type == $initial_payment_type) ) ? ' checked': '' ?> /> |
|
86 | + required <?= (($how_much == $amount) and ($payment_type == $initial_payment_type)) ? ' checked' : '' ?> /> |
|
87 | 87 | <span class="radio-label-large"><?=$label?></span> |
88 | 88 | </label> |
89 | 89 | <?php } ?> |
@@ -4,27 +4,27 @@ discard block |
||
4 | 4 | # note - new annual and monthly payments need to be defined as new prices in stripe |
5 | 5 | # e.g. 'donate_monthly_10'. |
6 | 6 | $payment_amounts = array( |
7 | - 'monthly' => array( |
|
7 | + 'monthly' => array( |
|
8 | 8 | '2' => '£2', |
9 | 9 | '5' => '£5', |
10 | 10 | '10' => '£10', |
11 | - ), |
|
12 | - 'annually' => array( |
|
11 | + ), |
|
12 | + 'annually' => array( |
|
13 | 13 | '10' => '£10', |
14 | 14 | '50' => '£50', |
15 | 15 | '100' => '£100', |
16 | - ), |
|
17 | - 'one-off' => array( |
|
16 | + ), |
|
17 | + 'one-off' => array( |
|
18 | 18 | '5' => '£5', |
19 | 19 | '10' => '£10', |
20 | 20 | '20' => '£20', |
21 | - ), |
|
21 | + ), |
|
22 | 22 | ); |
23 | 23 | |
24 | 24 | $default_amounts = array( |
25 | - 'monthly' => '5', |
|
26 | - 'annually' => '10', |
|
27 | - 'one-off' => '10', |
|
25 | + 'monthly' => '5', |
|
26 | + 'annually' => '10', |
|
27 | + 'one-off' => '10', |
|
28 | 28 | ); |
29 | 29 | |
30 | 30 | $default_type = 'one-off'; |
@@ -37,10 +37,10 @@ discard block |
||
37 | 37 | |
38 | 38 | # if how-much is not in the allowed values for the current payment type, set to 'other', and set $other_how_much to the value of how-much |
39 | 39 | if (!array_key_exists($how_much, $payment_amounts[$initial_payment_type])) { |
40 | - $how_much = 'other'; |
|
41 | - $other_how_much = get_http_var('how-much'); |
|
40 | + $how_much = 'other'; |
|
41 | + $other_how_much = get_http_var('how-much'); |
|
42 | 42 | } else { |
43 | - $other_how_much = ''; |
|
43 | + $other_how_much = ''; |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | ?> |