Skip to content

Commit

Permalink
fix PHP 8 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg committed Nov 1, 2022
1 parent 056e36a commit 298762c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions system/modules/sharebuttons/classes/ShareButtons.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ public static function createShareButtons($networks, $theme = self::DEFAULT_THEM
// access to page
global $objPage;

if (!$objPage) {
return '';
}

// try to deserialize
if( is_string( $networks ) )
$networks = StringUtil::deserialize( $networks );
Expand Down

0 comments on commit 298762c

Please sign in to comment.