diff --git a/system/View/View.php b/system/View/View.php index 184f2528c32c..d963b95595c9 100644 --- a/system/View/View.php +++ b/system/View/View.php @@ -446,10 +446,10 @@ public function endSection() * @param bool $saveData If true, saves data for subsequent calls, * if false, cleans the data after displaying. */ - public function renderSection(string $sectionName, bool $saveData = false): string + public function renderSection(string $sectionName, bool $saveData = false, string $defaultContent= ""): string { if (! isset($this->sections[$sectionName])) { - return ''; + return $defaultContent; } $output = '';