// fix date error ('0000-00-00' is an invalid date)

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8843 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot
2011-09-28 13:36:41 +00:00
parent df7416a453
commit 74aa0b573c
+1 -1
View File
@@ -277,7 +277,7 @@ class ProductControllerCore extends FrontController
$groups[$row['id_attribute_group']]['attributes_quantity'][$row['id_attribute']] = 0;
$groups[$row['id_attribute_group']]['attributes_quantity'][$row['id_attribute']] += (int)($row['quantity']);
$availableDate = Tools::displayDate(strtotime($row['available_date']), $this->context->language->id);
$availableDate = ($row['available_date'] != '0000-00-00') ? Tools::displayDate($row['available_date'], $this->context->language->id) : $row['available_date'];
$combinations[$row['id_product_attribute']]['attributes_values'][$row['id_attribute_group']] = $row['attribute_name'];
$combinations[$row['id_product_attribute']]['attributes'][] = (int)($row['id_attribute']);