added curly braces + space
Signed-off-by: Roland Häder <roland@mxchange.org> Conflicts: mod/events.php
This commit is contained in:
parent
b580c23844
commit
7f98c8086c
|
@ -72,14 +72,16 @@ function events_post(App &$a) {
|
||||||
|
|
||||||
if ($adjust) {
|
if ($adjust) {
|
||||||
$start = datetime_convert(date_default_timezone_get(),'UTC',$start);
|
$start = datetime_convert(date_default_timezone_get(),'UTC',$start);
|
||||||
if(! $nofinish)
|
if (! $nofinish) {
|
||||||
$finish = datetime_convert(date_default_timezone_get(),'UTC',$finish);
|
$finish = datetime_convert(date_default_timezone_get(),'UTC',$finish);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
$start = datetime_convert('UTC','UTC',$start);
|
$start = datetime_convert('UTC','UTC',$start);
|
||||||
if(! $nofinish)
|
if (! $nofinish) {
|
||||||
$finish = datetime_convert('UTC','UTC',$finish);
|
$finish = datetime_convert('UTC','UTC',$finish);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Don't allow the event to finish before it begins.
|
// Don't allow the event to finish before it begins.
|
||||||
// It won't hurt anything, but somebody will file a bug report
|
// It won't hurt anything, but somebody will file a bug report
|
||||||
|
|
Loading…
Reference in a new issue