aboutsummaryrefslogtreecommitdiffstats
path: root/mod/events.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-03-26 18:03:39 -0700
committerfriendica <info@friendica.com>2015-03-26 18:03:39 -0700
commit47292c612c5a2a6d3819ca3c415fa2d99ab2ee7f (patch)
tree741e9397e6e8697603ae88cd1916d9eca24eed27 /mod/events.php
parentf1a16607095e0ebbd8ce2201a2f087557b39f282 (diff)
downloadvolse-hubzilla-47292c612c5a2a6d3819ca3c415fa2d99ab2ee7f.tar.gz
volse-hubzilla-47292c612c5a2a6d3819ca3c415fa2d99ab2ee7f.tar.bz2
volse-hubzilla-47292c612c5a2a6d3819ca3c415fa2d99ab2ee7f.zip
provide ways to over-ride the datetime pickers
Diffstat (limited to 'mod/events.php')
-rwxr-xr-xmod/events.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/events.php b/mod/events.php
index 010f1f7c4..289ddfb15 100755
--- a/mod/events.php
+++ b/mod/events.php
@@ -548,12 +548,14 @@ function events_content(&$a) {
if(! x($orig_event))
$sh_checked = '';
else
- $sh_checked = (($orig_event['allow_cid'] === '<' . $channel['channel_hash'] . '>' && (! $orig_event['allow_gid']) && (! $orig_event['deny_cid']) && (! $orig_event['deny_gid'])) ? '' : ' checked="checked" ' );
+ $sh_checked = ((($orig_event['allow_cid'] === '<' . $channel['channel_hash'] . '>' || (! $orig_event['allow_cid'])) && (! $orig_event['allow_gid']) && (! $orig_event['deny_cid']) && (! $orig_event['deny_gid'])) ? '' : ' checked="checked" ' );
if($orig_event['event_xchan'])
$sh_checked .= ' disabled="disabled" ';
+
+
$sdt = ((x($orig_event)) ? $orig_event['start'] : 'now');
$fdt = ((x($orig_event)) ? $orig_event['finish'] : 'now');