From ec002b775a9557ff62fc6ac2bb63c1806c8d8f1e Mon Sep 17 00:00:00 2001 From: Franz Holzinger Date: Tue, 9 Jul 2024 11:44:10 +0200 Subject: [PATCH] method generate of \Random\Engine\Secure is not static --- model/class.tx_ttproducts_order.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/model/class.tx_ttproducts_order.php b/model/class.tx_ttproducts_order.php index 557145859..d25b4b88b 100644 --- a/model/class.tx_ttproducts_order.php +++ b/model/class.tx_ttproducts_order.php @@ -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; }