Skip to content
This repository has been archived by the owner on Dec 17, 2019. It is now read-only.

Commit

Permalink
change to be initialized by empty string to prevent errors being thro…
Browse files Browse the repository at this point in the history
…wn. Fixed #1.
  • Loading branch information
imjakechapman committed Mar 24, 2014
1 parent 5a636ca commit 23d85b0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function getFunctions()
public function getSocialShareScripts($scriptList = null)
{

$scripts; // scripts to echo
$scripts = ''; // scripts to echo

if ( $scriptList != null ) {
$scriptList = explode('|', $scriptList); // pipe delimited list of scripts to include
Expand Down Expand Up @@ -131,7 +131,7 @@ public function getSocialBtn($type = null, $opts = null) {
*/
public function getSocialBtns($btnList = null, $width = '120')
{
$buttons; // our return list of markup
$buttons = ''; // our return list of markup
$btnList = explode('|', $btnList); // pipe delimited list of buttons to include
$url = craft()->request->getHostInfo() . craft()->request->getUrl(); // Get Current URL

Expand Down

0 comments on commit 23d85b0

Please sign in to comment.