Php 8.1 urlencode(): Passing null to parameter #1 ($string)

This commit is contained in:
gtbu 2022-05-25 20:50:20 +02:00
parent 31355dd922
commit 1175338af2

View file

@ -1274,7 +1274,7 @@ namespace gp\tool{
$edit_index,
'Admin_Theme_Content/Text',
$langmessage['edit'],
'cmd=EditText&key=' . urlencode($text) . '&return=' . urlencode($page->title),
'cmd=EditText&key=' . urlencode('is_null($text) ? "" : urlencode($text)') . '&return=' . urlencode('is_null($page->title) ? "" : urlencode($page->title)'),
['title' => htmlspecialchars($text), 'data-cmd' => 'gpabox']
);
echo '<div class="editable_area inner_size" id="ExtraEditArea' . $edit_index . '">';