Skip to content

Commit

Permalink
Merge pull request #276 from franzholz/develop
Browse files Browse the repository at this point in the history
method generate of \Random\Engine\Secure is not static
  • Loading branch information
franzholz authored Jul 9, 2024
2 parents cde638c + ec002b7 commit 65ad888
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion model/class.tx_ttproducts_order.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,10 @@ public function getBlankUid(&$orderArray)
if (!empty($GLOBALS['TYPO3_CONF_VARS']['SYS']['serverTimeZone'])) {
$orderArray['crdate'] += ($GLOBALS['TYPO3_CONF_VARS']['SYS']['serverTimeZone'] * 3600);
}
$secure = new \Random\Engine\Secure;
$orderArray['tracking_code'] =
$this->getNumber($orderUid) . '-' .
strtolower(substr(md5(\Random\Engine\Secure::generate()), 0, 6));
strtolower(substr(md5($secure->generate()), 0, 6));
tx_ttproducts_control_basket::store('order', $orderArray);
$this->currentArray = $orderArray;
}
Expand Down

0 comments on commit 65ad888

Please sign in to comment.