Renames user_id to uid in requests related tables accordingly to our naming convention.
[platal.git] / modules / profile / general.inc.php
index cac45ec..488d180 100644 (file)
@@ -412,7 +412,7 @@ class ProfileGeneral extends ProfilePage
         if ($this->owner) {
             $res = XDB::query("SELECT  COUNT(*)
                                  FROM  requests
-                                WHERE  type='photo' AND user_id = {?}",
+                                WHERE  type = 'photo' AND uid = {?}",
                               $this->owner->id());
             $this->values['nouvellephoto'] = $res->fetchOneCell();
         } else {