X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations.inc.php;h=fef4df2f294d589f0eebf20790bea61c64e22b0a;hb=e0ee31204dbb8e43870716190e4549257416fcb8;hp=085fffc5a83a8a25d983056a554497f871bd8528;hpb=59bec5bc5512a4f962ebac7b0346f59cdf56f901;p=platal.git diff --git a/include/validations.inc.php b/include/validations.inc.php index 085fffc..fef4df2 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(); } // }}}