================================================================================
Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/auser/www/html/testing-center/f-data/test1167/ALNJX-209/web/admin/mod/fbc/CBend.class.php on line 22
--------------------------------------------------------------------------------
BEFORE
return htmlspecialchars($s);
--------------------------------------------------------------------------------
AFTER
return !is_null($s)?htmlspecialchars($s):"";
--------------------------------------------------------------------------------
The following is wrong because if $s==0, it returns "" instead of "0"
return $s?htmlspecialchars($s):"";
================================================================================
web/install/selfapp/cmpnt/main/install/include/CConfigDbFile.class.php
--------------------------------------------------------------------------------
BEFORE
public static function save( $px ) {
$sx = array();
$sx[] = "";
$txt = implode("\r\n",$sx);
$path = self::pathFile();
file_put_contents($path,$txt);
}
--------------------------------------------------------------------------------
AFTER
public static function save( $px ) {
$sx = array();
$sx[] = "";
$txt = implode("\r\n",$sx);
$path = self::pathFile();
file_put_contents($path,$txt);
}
================================================================================