Skip to content

Commit 5641be5

Browse files
committed
Fix theme error display in PHP 8
1 parent fbd98b1 commit 5641be5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

qa-include/qa-theme-base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ public function favorite_button($tags, $class)
808808

809809
public function error($error)
810810
{
811-
if (strlen($error)) {
811+
if (strlen($error ?? '')) {
812812
$this->output(
813813
'<div class="qa-error">',
814814
$error,

0 commit comments

Comments
 (0)