X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations.inc.php;h=fef4df2f294d589f0eebf20790bea61c64e22b0a;hb=97a986879bcebfe8de032a927470c4b22597c80d;hp=31078e6c4ccd5b587e415080b98569c99c387402;hpb=53092def5ca4418c54cceb2788e6abcc30d31ddd;p=platal.git diff --git a/include/validations.inc.php b/include/validations.inc.php index 31078e6..fef4df2 100644 --- a/include/validations.inc.php +++ b/include/validations.inc.php @@ -1,6 +1,6 @@ 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(); } // }}}