diff options
author | friendica <info@friendica.com> | 2013-07-02 22:41:17 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-07-02 22:41:17 -0700 |
commit | fd74c5b2ce303ba7018b139c033c6f92ea134751 (patch) | |
tree | 2a22f8a3ba6785284ebf1293c6c1bd8a264e934e /include/dir_fns.php | |
parent | 2ecd5a763228fce8f7ca2f379edd4fdd3fd3f44c (diff) | |
download | volse-hubzilla-fd74c5b2ce303ba7018b139c033c6f92ea134751.tar.gz volse-hubzilla-fd74c5b2ce303ba7018b139c033c6f92ea134751.tar.bz2 volse-hubzilla-fd74c5b2ce303ba7018b139c033c6f92ea134751.zip |
really, truly fix the age missing in directory bug
Diffstat (limited to 'include/dir_fns.php')
-rw-r--r-- | include/dir_fns.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/dir_fns.php b/include/dir_fns.php index 5a1d671cb..0b678fd91 100644 --- a/include/dir_fns.php +++ b/include/dir_fns.php @@ -53,7 +53,7 @@ function syncdirs($uid) { logger('syncdirs', LOGGER_DEBUG); - $p = q("select channel.channel_hash, profile.* from profile left join channel on channel_id = uid where uid = %d and is_default = 1", + $p = q("select channel.channel_hash, channel_timezone, profile.* from profile left join channel on channel_id = uid where uid = %d and is_default = 1", intval($uid) ); @@ -64,6 +64,9 @@ function syncdirs($uid) { $profile['description'] = $p[0]['pdesc']; $profile['birthday'] = $p[0]['dob']; + if($age = age($p[0]['dob'],$p[0]['channel_timezone'],'')) + $profile['age'] = $age; + $profile['gender'] = $p[0]['gender']; $profile['marital'] = $p[0]['marital']; $profile['sexual'] = $p[0]['sexual']; |