X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fprofile%2Fgeneral.inc.php;h=5e70adc0853807156803f5e04652c9194d032963;hb=e5fb8f8716118e456b3318f3c9369e6aee037335;hp=8555a1f09cd662d748d0fa3af04e9896053084da;hpb=fb813fb52d5ab65ca9a5b92b5cb9089523380d79;p=platal.git diff --git a/modules/profile/general.inc.php b/modules/profile/general.inc.php index 8555a1f..5e70adc 100644 --- a/modules/profile/general.inc.php +++ b/modules/profile/general.inc.php @@ -406,8 +406,8 @@ class ProfileGeneral extends ProfilePage // Retreive photo informations $res = XDB::query("SELECT pub - FROM photo - WHERE uid = {?}", $this->pid()); + FROM profile_photos + WHERE pid = {?}", $this->pid()); $this->values['photo_pub'] = $res->fetchOneCell(); if ($this->owner) { @@ -464,9 +464,9 @@ class ProfileGeneral extends ProfilePage $this->pid(), $new_email); } if ($this->changed['photo_pub']) { - XDB::execute("UPDATE photo + XDB::execute("UPDATE profile_photos SET pub = {?} - WHERE uid = {?}", + WHERE pid = {?}", $this->values['photo_pub'], $this->pid()); } if ($this->changed['yourself']) {