projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix photo edition by other users (Closes #1160)
[platal.git]
/
modules
/
profile
/
general.inc.php
diff --git
a/modules/profile/general.inc.php
b/modules/profile/general.inc.php
index
088277c
..
db75a30
100644
(file)
--- a/
modules/profile/general.inc.php
+++ b/
modules/profile/general.inc.php
@@
-524,7
+524,7
@@
class ProfileSettingGeneral extends ProfilePage
if ($this->owner) {
$res = XDB::query("SELECT COUNT(*)
FROM requests
- WHERE type = 'photo' AND
u
id = {?}",
+ WHERE type = 'photo' AND
p
id = {?}",
$this->owner->id());
$this->values['nouvellephoto'] = $res->fetchOneCell();
} else {