projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
If there is no photo, default publicity is 'private'.
[platal.git]
/
modules
/
profile
/
general.inc.php
diff --git
a/modules/profile/general.inc.php
b/modules/profile/general.inc.php
index
900c1c8
..
cd3b394
100644
(file)
--- a/
modules/profile/general.inc.php
+++ b/
modules/profile/general.inc.php
@@
-574,7
+574,11
@@
class ProfilePageGeneral extends ProfilePage
$res = XDB::query("SELECT pub
FROM profile_photos
WHERE pid = {?}", $this->pid());
$res = XDB::query("SELECT pub
FROM profile_photos
WHERE pid = {?}", $this->pid());
- $this->values['photo_pub'] = $res->fetchOneCell();
+ if ($res->numRows() == 0) {
+ $this->values['photo_pub'] = 'private';
+ } else {
+ $this->values['photo_pub'] = $res->fetchOneCell();
+ }
if ($this->owner) {
$res = XDB::query("SELECT COUNT(*)
if ($this->owner) {
$res = XDB::query("SELECT COUNT(*)