Skip to content

Commit

Permalink
#379: Correcting Warnings when 'ACCOUNT_STATE' is 'false'
Browse files Browse the repository at this point in the history
  • Loading branch information
lat9 committed Aug 1, 2023
1 parent ec5d139 commit c34483d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/one_page_checkout/readme.html
Original file line number Diff line number Diff line change
Expand Up @@ -728,12 +728,13 @@ <h3>Template-specific &quot;jscript_framework.php&quot; is Required</h3>
<div id="changes">
<p>You can view the details of these changes on the plugin's <a href="https://github.com/lat9/one_page_checkout/issues" target="_blank" rel="noopener">GitHub repository</a>. <span class="template-changed">Changes to the plugin's default templates are identified in this color</span>; remember to merge those changes with any template-override version you might have created! Additions are identified by <span class="added">this</span> color and removals are indicated like <span class="removed">this</span>.</p>
<ul>
<li>v2.4.6-beta3, 2023-03-28 (lat9 and marco-pm):<ul>
<li>v2.4.6-beta4, 2023-08-01 (lat9 and marco-pm):<ul>
<li>BUGFIX: Correct unwanted redirect when pricing includes an &amp;nbsp;.</li>
<li>BUGFIX: Redirect page correctly on AJAX return.</li>
<li>BUGFIX: Reset guest session values on 'conversion' to PayPal Express Checkout.</li>
<li>BUGFIX: Cast parameters for 'zen_get_zone_code' to prevent PHP Fatal error.</li>
<li>BUGFIX: Remove all but essential, i.e. interface errors, PHP user-error-exits, replacing with customer messaging and warning logs.</li>
<li>BUGFIX: Correct PHP Warnings when <var>ACCOUNT_STATE</var> is set to 'false'.</li>
<li>The following files were changed or <span class="added">added</span>:<ol>
<li>/includes/classes/OnePageCheckout.php</li>
<li>/includes/classes/ajax/zcAjaxOnePageCheckout.php</li>
Expand Down
3 changes: 3 additions & 0 deletions includes/classes/OnePageCheckout.php
Original file line number Diff line number Diff line change
Expand Up @@ -1597,6 +1597,9 @@ protected function validateUpdatedAddress(&$address_values, $which, $prepend_whi
$messages['postcode'] = $message_prefix . ENTRY_POST_CODE_ERROR;
}

$state = '';
$zone_id = 0;
$country_has_zones = false;
$country = zen_db_prepare_input($address_values['zone_country_id']);
if (!ctype_digit($country)) {
$error = true;
Expand Down

0 comments on commit c34483d

Please sign in to comment.