From 91b354f6f8e3c463737d0c9941af164716262cff Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 11 Jan 2023 10:12:19 +0000 Subject: [PATCH] assert --- core/basepage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/basepage.php b/core/basepage.php index 2657ac80..5806e880 100644 --- a/core/basepage.php +++ b/core/basepage.php @@ -273,6 +273,7 @@ class BasePage if (!is_null($this->filename)) { header('Content-Disposition: ' . $this->disposition . '; filename=' . $this->filename); } + assert($this->file, "file should not be null with PageMode::FILE"); // https://gist.github.com/codler/3906826 $size = filesize($this->file); // File size