Commit 8dd9939c authored by mbriand's avatar mbriand
Browse files

bug limite par age des produits

parent afe0a28a
......@@ -490,9 +490,9 @@ class produit extends stdentity
if($this->mineur>0)
{
$dob=$user->date_naissance;
$naiss=$user->date_naissance;
$today = mktime();
$secondes = ($today > $naiss)? $today - $naiss : $naiss - $today;
$secondes = ($today > $naiss)? $today - $naiss : 0;
$annees = date('Y', $secondes) - 1970;
if($age<$this->mineur)
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment