X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations.inc.php;h=fef4df2f294d589f0eebf20790bea61c64e22b0a;hb=97a986879bcebfe8de032a927470c4b22597c80d;hp=085fffc5a83a8a25d983056a554497f871bd8528;hpb=8d84c630f353ef0534e02325507ed35cc2f0d28f;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(); } // }}}