aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2023-09-17 16:49:53 +0200
committerRobin Appelman <robin@icewind.nl>2023-09-17 16:49:53 +0200
commitf0f142528ef49b3eb31c3fbd1770803ff1ca3d8a (patch)
tree4811880d604fd5ff7f4c134f7b678c07edaa857c
parent1f32b18925970a0bc6694c92789f554fee0518d1 (diff)
downloadnextcloud-server-profile-request.tar.gz
nextcloud-server-profile-request.zip
fix error page handlingprofile-request
Signed-off-by: Robin Appelman <robin@icewind.nl>
-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);
}
}