Skip to content

Commit

Permalink
Fix "PHP Deprecated: trim(): Passing null to parameter Universal-Omega#1
Browse files Browse the repository at this point in the history
 ($string) of type string is deprecated"
  • Loading branch information
paladox authored Dec 15, 2023
1 parent 6f2834a commit db6d80d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/Parse.php
Original file line number Diff line number Diff line change
Expand Up @@ -886,10 +886,10 @@ private function defineScrollVariables( $scrollVariables, Parser $parser ) {
$scrollVariables = (array)$scrollVariables;

foreach ( $scrollVariables as $variable => $value ) {
Variables::setVar( [ '', '', $variable, $value ] );
Variables::setVar( [ '', '', $variable, $value ?? '' ] );

if ( defined( 'ExtVariables::VERSION' ) ) {
ExtVariables::get( $parser )->setVarValue( $variable, $value );
ExtVariables::get( $parser )->setVarValue( $variable, $value ?? '' );
}
}
}
Expand Down

0 comments on commit db6d80d

Please sign in to comment.