X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile%2Fgeneral.inc.php;h=5e70adc0853807156803f5e04652c9194d032963;hb=5c4ea53f1c66590a34fc10ae5767469c58b90a24;hp=aacbfaabd69243daac27790373fce28d3dd7ecea;hpb=5660032ac785d410f90e3f5b0d6948dc90b0cfea;p=platal.git diff --git a/modules/profile/general.inc.php b/modules/profile/general.inc.php index aacbfaa..5e70adc 100644 --- a/modules/profile/general.inc.php +++ b/modules/profile/general.inc.php @@ -1,6 +1,6 @@ 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']) {