Skip to content

Commit 298762c

Browse files
committed
fix PHP 8 issue
1 parent 056e36a commit 298762c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

system/modules/sharebuttons/classes/ShareButtons.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ public static function createShareButtons($networks, $theme = self::DEFAULT_THEM
3838
// access to page
3939
global $objPage;
4040

41+
if (!$objPage) {
42+
return '';
43+
}
44+
4145
// try to deserialize
4246
if( is_string( $networks ) )
4347
$networks = StringUtil::deserialize( $networks );

0 commit comments

Comments
 (0)