X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations.inc.php;h=f7f1ee6f42390eecf631df3cac001bce64e6bd41;hb=671b7073a0debbd347e7276f44fa04c961693f4c;hp=6666e283544f635f12f9dfc2b5d1a696b85ce65c;hpb=ee71865181e96e7b0754ef9e7da4b3cb26f4c1d7;p=platal.git diff --git a/include/validations.inc.php b/include/validations.inc.php index 6666e28..f7f1ee6 100644 --- a/include/validations.inc.php +++ b/include/validations.inc.php @@ -85,10 +85,7 @@ 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(); + $this->promo = $this->user->promo(); } // }}}