aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-12-20 17:18:19 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2011-12-20 17:18:19 +0100
commitba732c97c10a1f6f712f78c97d7d9bd51c104160 (patch)
tree2e590cb581be00c29d1ef5914a8d6d9bd924b910 /boot.php
parentf3b499f1192a3cc2386aa639d2f0d2fa147e911a (diff)
parentc0c4c46874ed7e1798900422112ca643c1bb3cc0 (diff)
downloadvolse-hubzilla-ba732c97c10a1f6f712f78c97d7d9bd51c104160.tar.gz
volse-hubzilla-ba732c97c10a1f6f712f78c97d7d9bd51c104160.tar.bz2
volse-hubzilla-ba732c97c10a1f6f712f78c97d7d9bd51c104160.zip
Merge remote-tracking branch 'friendica/master'
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index 5cc77182a..61f14d9bc 100644
--- a/boot.php
+++ b/boot.php
@@ -9,7 +9,7 @@ require_once('include/nav.php');
require_once('include/cache.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica');
-define ( 'FRIENDICA_VERSION', '2.3.1199' );
+define ( 'FRIENDICA_VERSION', '2.3.1200' );
define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
define ( 'DB_UPDATE_VERSION', 1112 );
@@ -1036,6 +1036,8 @@ function get_birthdays() {
if($r && count($r)) {
$total = 0;
$now = strtotime('now');
+ $cids = array();
+
$istoday = false;
foreach($r as $rr) {
if(strlen($rr['name']))
@@ -1052,6 +1054,13 @@ function get_birthdays() {
foreach($r as $rr) {
if(! strlen($rr['name']))
continue;
+
+ // avoid duplicates
+
+ if(in_array($rr['cid'],$cids))
+ continue;
+ $cids[] = $rr['cid'];
+
$today = (((strtotime($rr['start'] . ' +00:00') < $now) && (strtotime($rr['finish'] . ' +00:00') > $now)) ? true : false);
$sparkle = '';
$url = $rr['url'];