// Fix bug method update()
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9619 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
b5d6af8aa5
commit
b0cab274e9
1 file changed
+1
-1
@@ -196,7 +196,7 @@ class CustomerCore extends ObjectModel
|
|||||||
return Db::getInstance()->AutoExecute(_DB_PREFIX_.'customer_group', $row, 'INSERT');
|
return Db::getInstance()->AutoExecute(_DB_PREFIX_.'customer_group', $row, 'INSERT');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function update()
|
public function update($nullValues = false)
|
||||||
{
|
{
|
||||||
$this->birthday = (empty($this->years) ? $this->birthday : (int)$this->years.'-'.(int)$this->months.'-'.(int)$this->days);
|
$this->birthday = (empty($this->years) ? $this->birthday : (int)$this->years.'-'.(int)$this->months.'-'.(int)$this->days);
|
||||||
if ($this->newsletter && !$this->newsletter_date_add)
|
if ($this->newsletter && !$this->newsletter_date_add)
|
||||||
|
|||||||
Reference in new issue
Block a user