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
1 changed files with 11 additions and 9 deletions

View File

@ -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