diff --git a/classes/pref/labels.php b/classes/pref/labels.php index acaabb233..92acabd9e 100644 --- a/classes/pref/labels.php +++ b/classes/pref/labels.php @@ -139,7 +139,7 @@ class Pref_Labels extends Handler_Protected { $sth->execute([$caption, $old_caption, $_SESSION['uid']]); - print clean($_REQUEST["value"]); + print clean($_REQUEST["caption"]); } else { print $old_caption; } diff --git a/classes/pref/system.php b/classes/pref/system.php index 763440d78..994e024c7 100644 --- a/classes/pref/system.php +++ b/classes/pref/system.php @@ -31,7 +31,7 @@ class Pref_System extends Handler_Protected { $info = ob_get_contents(); ob_end_clean(); - print preg_replace( '%^.*
(.*).*$%ms','$1', $info); + print preg_replace( '%^.*(.*).*$%ms','$1', (string)$info); } private function log_viewer(int $page, int $severity) { @@ -71,87 +71,89 @@ class Pref_System extends Handler_Protected { $total_pages = 0; } - print "".__("Error")." | -".__("Filename")." | -".__("Message")." | -".__("User")." | -".__("Date")." | -
" . Logger::$errornames[$line["errno"]] . " (" . $line["errno"] . ") | "; - print "" . $line["filename"] . ":" . $line["lineno"] . " | "; - print "" . $line["errstr"] . "\n" . $line["context"] . " | "; - print "" . $line["login"] . " | "; - - print "" . - TimeHelper::make_local_datetime($line["created_at"], false) . " | "; - - print "
+ | + | + | + | + |
+ + | ++ | + | + | + + | +