mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-07-14 10:50:48 +00:00
If we didn't actually GET an action, don't have an ugly PHP error.
This commit is contained in:
parent
f3cf86741c
commit
f01e6f5eb5
@ -26,7 +26,7 @@ $request = new CalDAVRequest();
|
||||
|
||||
$code_file = sprintf( 'tz/%s.php', $action );
|
||||
if ( ! @include_once( $code_file ) ) {
|
||||
$request->PreconditionFailed(400, "supported-action", 'The action "'.$_GET['action'].'" is not understood.' );
|
||||
$request->PreconditionFailed(400, "supported-action", 'The action "'.$action.'" is not understood.' );
|
||||
}
|
||||
|
||||
$request->DoResponse( 500, translate("The application failed to understand that request.") );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user