PHP8.1 compatibility

This commit is contained in:
sparkyx 2023-07-16 18:00:40 +02:00
parent 887d407a87
commit 98f944cfcd
3 changed files with 5 additions and 4 deletions

View file

@ -1822,6 +1822,7 @@ class Document
}
if ($count==0)
{
$p_value='';
if ($p_type=='OOo')
{
$p_value=noalyss_str_replace('&', '&', $p_value);

View file

@ -413,7 +413,7 @@ function html_min_page_start($p_theme="", $p_script="", $p_script2="")
$Res = $cn->exec_sql("select the_filestyle from theme
where the_name='" . $p_theme . "'");
if (Database::num_row($Res) == 0)
$style = "style-classic.css";
$style = "style-classic7.css";
else
{
$s = Database::fetch_array($Res, 0);
@ -422,7 +422,7 @@ function html_min_page_start($p_theme="", $p_script="", $p_script2="")
}
else
{
$style = "style-classic.css";
$style = "style-classic7.css";
} // end if
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 FINAL//EN">';
echo "<HTML>";
@ -509,7 +509,7 @@ function FormatString($p_string)
function sql_string($p_string)
{
$p_string = trim($p_string);
$p_string = trim($p_string??"");
if (strlen($p_string) == 0)
return null;
$p_string = str_replace("'", "''", $p_string);

View file

@ -230,7 +230,7 @@ if ($aRap != null ) {
else
$remove='';
$comment=strip_tags($array_jr[0]['jr_comment']);
$comment=strip_tags($array_jr[0]['jr_comment']??"");
$pj_nb=h($array_jr[0]['jr_pj_number']);
echo tr (td(format_date($array_jr[0]['jr_date'])).
td('<a class="line" href="javascript:void(0)" onclick="'.$str.'" >'.$internal.'</A>').