Skip to content

Commit

Permalink
fix for getting strlen of null values in autoloaded options. addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
trepmal authored Nov 4, 2023
1 parent 3180d13 commit 4c5bdf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qm-plugins/qm-alloptions/class-qm-collector-alloptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function process() {
$options = [];

foreach ( $alloptions as $name => $val ) {
$size = mb_strlen( $val );
$size = is_null( $val ) ? 0 : mb_strlen( $val );
$total_size += $size;

$option = new stdClass();
Expand Down

0 comments on commit 4c5bdf6

Please sign in to comment.