Skip to content

Commit

Permalink
Fixed issue #299
Browse files Browse the repository at this point in the history
  • Loading branch information
Al Brookbanks committed Mar 2, 2015
1 parent 0d23483 commit 805e89d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/cubecart.class.php
Expand Up @@ -1990,7 +1990,7 @@ private function _listPaymentOptions($selected_gateway = '') {
} else {
$gateway['description'] = $gateway['folder'];
}
$gateway['checked'] = ((isset($gateway['default']) && $gateway['default'] && $selected_gateway=='') || ($selected_gateway == $gateway['folder'])) ? 'checked="checked"' : '';
$gateway['checked'] = ((isset($gateway['default']) && $gateway['default'] && $selected_gateway=='') || ($selected_gateway == $gateway['folder']) || count($gateways)==1) ? 'checked="checked"' : '';
$gateway_list[] = $gateway;
}
$GLOBALS['smarty']->assign('GATEWAYS', $gateway_list);
Expand Down

0 comments on commit 805e89d

Please sign in to comment.