[-] CORE : fixed PHP Notice: Undefined index: date_expiration on virtual product

This commit is contained in:
vAugagneur
2013-04-26 10:15:54 +02:00
parent 8b590af1c7
commit 48ee7b417d

View File

@@ -120,7 +120,7 @@ class OrderHistoryCore extends ObjectModel
.'&id_order='.(int)$order->id
.'&secure_key='.$order->secure_key;
$assign[$key]['link'] = $dl_link;
if ($virtual_product['date_expiration'] != '0000-00-00 00:00:00')
if (isset($virtual_product['date_expiration']) && $virtual_product['date_expiration'] != '0000-00-00 00:00:00')
$assign[$key]['deadline'] = Tools::displayDate($virtual_product['date_expiration '], $order->id_lang);
if ($product_download->nb_downloadable != 0)
$assign[$key]['downloadable'] = (int)$product_download->nb_downloadable;