X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations.inc.php;h=fef4df2f294d589f0eebf20790bea61c64e22b0a;hb=97a986879bcebfe8de032a927470c4b22597c80d;hp=d72ec3d3a1a131709dc13ed906381999674e950b;hpb=e8a898662eeafa5201082067a7aac46573884ebb;p=platal.git diff --git a/include/validations.inc.php b/include/validations.inc.php index d72ec3d..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_display AS promo + $res = XDB::query("SELECT promo FROM profile_display - WHERE uid={?}", $this->user->id()); + WHERE pid={?}", $this->user->id()); $this->promo = $res->fetchOneCell(); }