We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a276e51 commit 2e4c0fbCopy full SHA for 2e4c0fb
Block/Post/AbstractPost.php
@@ -259,9 +259,12 @@ public function displayAddThisToolbox()
259
/**
260
* @return array
261
*/
262
- public function getAllowedSocialNetworks()
+ public function getAllowedSocialNetworks(): array
263
{
264
- $socialNetworks = $this->_scopeConfig->getValue('mfblog/social/use_social_networks', ScopeInterface::SCOPE_STORE);
265
- return explode(',',$socialNetworks);
+ $socialNetworks = (string)$this->_scopeConfig->getValue('mfblog/social/use_social_networks', ScopeInterface::SCOPE_STORE);
+ if ($socialNetworks) {
266
+ return explode(',', $socialNetworks);
267
+ }
268
+ return [];
269
}
270
0 commit comments