Misc: Mitigate PHP 8.1 warnings.

This commit is contained in:
fusionate
2023-09-20 20:49:27 +00:00
parent 044b91ec6c
commit 518c32efe6
5 changed files with 42 additions and 34 deletions

View File

@@ -1211,7 +1211,7 @@ function number_pad($number,$n) {
else { //rgb(a)
$rgb = implode(',', $color);
if (!empty($alpha)) { $rgb .= ','.$alpha; $a = 'a'; }
if ($wrapper) { $rgb = 'rgb'.$a.'('.$rgb.')'; }
if ($wrapper) { $rgb = 'rgb'.($a ?? '').'('.$rgb.')'; }
return $rgb;
}
}