X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fvalidations.inc.php;h=9b3e1f76745286fe31dab973968bc8c4c053e25e;hb=6244bf56b0f13e1c73b1c32c06d2601270d2e306;hp=97e1b150b298aeb1ccb418fd034d4dc4d3a77c6c;hpb=34062b64fa9f161dc071527b2e864496555d598d;p=platal.git diff --git a/include/validations.inc.php b/include/validations.inc.php index 97e1b15..9b3e1f7 100644 --- a/include/validations.inc.php +++ b/include/validations.inc.php @@ -87,7 +87,7 @@ abstract class Validate $this->type = $_type; $res = XDB::query("SELECT promo_display AS promo FROM profile_display - WHERE uid={?}", $_uid); + WHERE uid={?}", $this->user->id()); $this->promo = $res->fetchOneCell(); }