X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations.inc.php;h=050318c042db14e38fec6d78546a310ebd30ad71;hb=5b3680d59f94955355c5d70c2eb10916671add2f;hp=6666e283544f635f12f9dfc2b5d1a696b85ce65c;hpb=ee71865181e96e7b0754ef9e7da4b3cb26f4c1d7;p=platal.git diff --git a/include/validations.inc.php b/include/validations.inc.php index 6666e28..050318c 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(); + $this->promo = $this->user->promo(); } // }}}