From 9158a6c9dd7ba937a7a257b723bc29bb76a9e577 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Thu, 2 Sep 2021 22:51:20 +0200 Subject: [PATCH] fix empty context on public widget --- _widgets.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_widgets.php b/_widgets.php index f5a1631..9b70789 100644 --- a/_widgets.php +++ b/_widgets.php @@ -95,12 +95,14 @@ class sabaWidget return; } + $q = $_ctx->saba_otpion ?? ''; + # title and search $res = ($w->title ? $w->renderTitle('') : '') . '
' . '

placeholder ? 'placeholder="' . html::escapeHTML($w->placeholder) . '"' : '') . ' aria-label="' . __('Search') . '"/> ' . '

' ;