added curly braces + space

Signed-off-by: Roland Häder <roland@mxchange.org>

Conflicts:
	mod/events.php
This commit is contained in:
Roland Häder 2016-12-21 09:30:49 +01:00
parent b580c23844
commit 7f98c8086c

View file

@ -72,14 +72,16 @@ function events_post(App &$a) {
if ($adjust) {
$start = datetime_convert(date_default_timezone_get(),'UTC',$start);
if(! $nofinish)
if (! $nofinish) {
$finish = datetime_convert(date_default_timezone_get(),'UTC',$finish);
}
}
else {
$start = datetime_convert('UTC','UTC',$start);
if(! $nofinish)
if (! $nofinish) {
$finish = datetime_convert('UTC','UTC',$finish);
}
}
// Don't allow the event to finish before it begins.
// It won't hurt anything, but somebody will file a bug report