Merge commit 'origin/fusionax' into account
[platal.git] / include / validations.inc.php
index d72ec3d..3ab4f0f 100644 (file)
@@ -85,10 +85,7 @@ abstract class Validate
         $this->stamp  = date('YmdHis');
         $this->unique = $_unique;
         $this->type   = $_type;
-        $res = XDB::query("SELECT  promo_display AS promo
-                             FROM  profile_display
-                            WHERE  uid={?}", $this->user->id());
-        $this->promo = $res->fetchOneCell();
+        $this->promo  = $this->user->promo();
     }
 
     // }}}