X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations.inc.php;h=6666e283544f635f12f9dfc2b5d1a696b85ce65c;hb=1dc71da137a384e771723b8a893539a7f5cc9fab;hp=2d730a2e4773b84f892da216fb6ba9cf8f0819fb;hpb=d4fd2f8a4478d5f8e18b2dadfbf663224d112ad1;p=platal.git diff --git a/include/validations.inc.php b/include/validations.inc.php index 2d730a2..6666e28 100644 --- a/include/validations.inc.php +++ b/include/validations.inc.php @@ -85,6 +85,10 @@ abstract class Validate $this->stamp = date('YmdHis'); $this->unique = $_unique; $this->type = $_type; + $res = XDB::query("SELECT promo + FROM profile_display + WHERE pid={?}", $this->user->id()); + $this->promo = $res->fetchOneCell(); } // }}}