Permalink
Browse files

Function: getsettletime minute fix.

  • Loading branch information...
1 parent 3c73df8 commit 9a5a7c3814e94b3d1dab3dc88d6cb93194892776 ethem committed Feb 10, 2006
Showing with 3 additions and 2 deletions.
  1. +3 −2 enrol/authorize/action.php
@@ -17,7 +17,9 @@ function getsettletime($time)
{
global $CFG;
- $cutoff = intval($CFG->an_cutoff); $hrs = $cutoff / 60; $mins = $cutoff % 60;
+ $cutoff = intval($CFG->an_cutoff);
+ $mins = $cutoff % 60;
+ $hrs = ($cutoff - $mins) / 60;
$cutofftime = strtotime("$hrs:$mins", $time);
if ($cutofftime < $time) {
$cutofftime = strtotime("$hrs:$mins", $time + (24 * 3600));
@@ -196,7 +198,6 @@ function authorizenet_action(&$order, &$message, &$extra, $action=AN_ACTION_NONE
$referer = "Referer: $CFG->an_referer\r\n";
}
- $response = array();
$host = $test ? 'certification.authorize.net' : 'secure.authorize.net';
$fp = fsockopen("ssl://$host", 443, $errno, $errstr, 60);
if (!$fp) {

0 comments on commit 9a5a7c3

Please sign in to comment.