projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bug in DirEnum for DE with "suboptions" (degree for a given school, ...)
[platal.git]
/
modules
/
profile
/
general.inc.php
diff --git
a/modules/profile/general.inc.php
b/modules/profile/general.inc.php
index
8555a1f
..
5e70adc
100644
(file)
--- 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
// Retreive photo informations
$res = XDB::query("SELECT pub
- FROM p
hoto
- WHERE
u
id = {?}", $this->pid());
+ FROM p
rofile_photos
+ WHERE
p
id = {?}", $this->pid());
$this->values['photo_pub'] = $res->fetchOneCell();
if ($this->owner) {
$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']) {
$this->pid(), $new_email);
}
if ($this->changed['photo_pub']) {
- XDB::execute("UPDATE p
hoto
+ XDB::execute("UPDATE p
rofile_photos
SET pub = {?}
SET pub = {?}
- WHERE
u
id = {?}",
+ WHERE
p
id = {?}",
$this->values['photo_pub'], $this->pid());
}
if ($this->changed['yourself']) {
$this->values['photo_pub'], $this->pid());
}
if ($this->changed['yourself']) {