Commit bc380038 authored by mbriand's avatar mbriand
Browse files

bug limite par age des produits

parent 8dd9939c
......@@ -493,7 +493,7 @@ class produit extends stdentity
$naiss=$user->date_naissance;
$today = mktime();
$secondes = ($today > $naiss)? $today - $naiss : 0;
$annees = date('Y', $secondes) - 1970;
$age = 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