aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/identity.php8
-rw-r--r--version.inc2
2 files changed, 9 insertions, 1 deletions
diff --git a/include/identity.php b/include/identity.php
index 97c29516c..eb0ba230b 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -547,12 +547,20 @@ function profile_load(&$a, $nickname, $profile = '') {
);
}
+
if(! $p) {
logger('profile error: ' . $a->query_string, LOGGER_DEBUG);
notice( t('Requested profile is not available.') . EOL );
$a->error = 404;
return;
}
+
+ $z = q("select xchan_photo_date from xchan where xchan_hash = '%s' limit 1",
+ dbesc($p[0]['channel_hash'])
+ );
+ if($z)
+ $p[0]['picdate'] = $z[0]['xchan_photo_date'];
+
// fetch user tags if this isn't the default profile
diff --git a/version.inc b/version.inc
index 6cbaffe4b..a8c40c9ac 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2014-03-30.632
+2014-03-31.633