fixing some conditions in the previous commit stalling InfoLog list

This commit is contained in:
Ralf Becker 2021-10-05 10:44:48 +02:00
parent 6ac401ef19
commit 29d2d7a580
2 changed files with 4 additions and 3 deletions

View File

@ -147,7 +147,8 @@ class Widget
}
// Reset content as we leave
if ($old_cont ?? null) {
if (isset($old_cont))
{
self::$cont = $old_cont;
}
}
@ -206,7 +207,7 @@ class Widget
$template = $this;
while($reader->moveToNextAttribute())
{
if ($reader->name != 'id' && isset($template->attr[$reader->name]) && $template->attr[$reader->name] !== $reader->value)
if ($reader->name != 'id' && (!isset($template->attr[$reader->name]) || $template->attr[$reader->name] !== $reader->value))
{
if (!$cloned)
{

View File

@ -186,7 +186,7 @@ class Nextmatch extends Etemplate\Widget
if (true) $value =& self::get_array(self::$request->content, $form_name, true);
// Add favorite here so app doesn't save it in the session
if (empty($_GET['favorite']))
if (!empty($_GET['favorite']))
{
$send_value['favorite'] = $safe_name;
}