From: friendica Date: Wed, 13 Jun 2012 04:34:28 +0000 (-0700) Subject: tracking another edge case X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d955813f22d5151046733fc55349112c44a16277;p=friendica.git tracking another edge case --- diff --git a/include/items.php b/include/items.php index f2dde23a71..5d9c36d94f 100755 --- a/include/items.php +++ b/include/items.php @@ -3393,14 +3393,16 @@ function drop_item($id,$interactive = true) { function first_post_date($uid,$wall = false) { - $r = q("select created from item + $r = q("select id, created from item where uid = %d and wall = %d and deleted = 0 and visible = 1 AND moderated = 0 order by created asc limit 1", intval($uid), intval($wall ? 1 : 0) ); - if(count($r)) + if(count($r)) { + logger('first_post_date: ' . $r[0]['id'] . ' ' . $r[0]['created'], LOGGER_DATA); return substr($r[0]['created'],0,10); + } return false; }