aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Manage.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-06-05 20:04:12 +0200
committerMario Vavti <mario@mariovavti.com>2016-06-05 20:04:12 +0200
commitcfbd2fc85c6e428f87c5e8d529c98e3e89202f2a (patch)
tree603e88df90c10ba5cc87d5bea90cb530459b70d0 /Zotlabs/Module/Manage.php
parent8d6c2b5d4a799d87df1cd9f6f258890045ce6c62 (diff)
parentdd6718c2cdf2cadaf7478b848eb892dcda1dc7e9 (diff)
downloadvolse-hubzilla-cfbd2fc85c6e428f87c5e8d529c98e3e89202f2a.tar.gz
volse-hubzilla-cfbd2fc85c6e428f87c5e8d529c98e3e89202f2a.tar.bz2
volse-hubzilla-cfbd2fc85c6e428f87c5e8d529c98e3e89202f2a.zip
Merge branch 'dev' into sabre32
Diffstat (limited to 'Zotlabs/Module/Manage.php')
-rw-r--r--Zotlabs/Module/Manage.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/Zotlabs/Module/Manage.php b/Zotlabs/Module/Manage.php
index 5ae79dbb2..4ca044c4a 100644
--- a/Zotlabs/Module/Manage.php
+++ b/Zotlabs/Module/Manage.php
@@ -93,9 +93,9 @@ class Manage extends \Zotlabs\Web\Controller {
$channels[$x]['mail'] = intval($mails[0]['total']);
- $events = q("SELECT type, start, adjust FROM `event`
- WHERE `event`.`uid` = %d AND start < '%s' AND start > '%s' and `ignore` = 0
- ORDER BY `start` ASC ",
+ $events = q("SELECT etype, dtstart, adjust FROM `event`
+ WHERE `event`.`uid` = %d AND dtstart < '%s' AND dtstart > '%s' and `dismissed` = 0
+ ORDER BY `dtstart` ASC ",
intval($channels[$x]['channel_id']),
dbesc(datetime_convert('UTC', date_default_timezone_get(), 'now + 7 days')),
dbesc(datetime_convert('UTC', date_default_timezone_get(), 'now - 1 days'))
@@ -108,14 +108,14 @@ class Manage extends \Zotlabs\Web\Controller {
$str_now = datetime_convert('UTC', date_default_timezone_get(), 'now', 'Y-m-d');
foreach($events as $e) {
$bd = false;
- if($e['type'] === 'birthday') {
+ if($e['etype'] === 'birthday') {
$channels[$x]['birthdays'] ++;
$bd = true;
}
else {
$channels[$x]['events'] ++;
}
- if(datetime_convert('UTC', ((intval($e['adjust'])) ? date_default_timezone_get() : 'UTC'), $e['start'], 'Y-m-d') === $str_now) {
+ if(datetime_convert('UTC', ((intval($e['adjust'])) ? date_default_timezone_get() : 'UTC'), $e['dtstart'], 'Y-m-d') === $str_now) {
$channels[$x]['all_events_today'] ++;
if($bd)
$channels[$x]['birthdays_today'] ++;