slackened condition to save downloadable purchase link

This commit is contained in:
Annika Wolff 2019-12-12 13:39:33 +01:00
parent feb2ee0ad1
commit 85d3c2b64a
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class DownloadableLinkPurchasedRepository extends Repository
*/
public function saveLinks($orderItem)
{
if ($orderItem->type != 'downloadable' || ! isset($orderItem->additional['links']))
if (stristr($orderItem->type,'downloadable') === false || ! isset($orderItem->additional['links']))
return;
foreach ($orderItem->additional['links'] as $linkId) {