diff options
author | friendica <info@friendica.com> | 2015-03-26 18:03:39 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-03-26 18:03:39 -0700 |
commit | 47292c612c5a2a6d3819ca3c415fa2d99ab2ee7f (patch) | |
tree | 741e9397e6e8697603ae88cd1916d9eca24eed27 /mod | |
parent | f1a16607095e0ebbd8ce2201a2f087557b39f282 (diff) | |
download | volse-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')
-rwxr-xr-x | mod/events.php | 4 |
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'); |