If we didn't actually GET an action, don't have an ugly PHP error.

This commit is contained in:
Andrew McMillan 2011-10-05 08:41:27 +02:00
parent f3cf86741c
commit f01e6f5eb5

View File

@ -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.") );