aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/dav/lib/Profiler/ProfilerPlugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Profiler/ProfilerPlugin.php b/apps/dav/lib/Profiler/ProfilerPlugin.php
index 8743c2e2cdd..720f4523ca7 100644
--- a/apps/dav/lib/Profiler/ProfilerPlugin.php
+++ b/apps/dav/lib/Profiler/ProfilerPlugin.php
@@ -83,7 +83,7 @@ class ProfilerPlugin extends ServerPlugin {
$this->eventLogger->end('runtime');
if ($this->profiler->isEnabled()) {
- $profile = $this->profiler->collect($this->request, new Response($status));
+ $profile = $this->profiler->collect($this->request, new Response($status ?? 0));
$this->profiler->saveProfile($profile);
}
}