Skip to content
This repository
Browse code

Merge pull request #88 from Gaudo/patch-1

[Fix] array_merge() warning in FacebookHelper.php
  • Loading branch information...
commit 523aeaa526ed4f545c7c40a8545676be7d8328c3 2 parents 8bcd201 + ff7b33e
Nick Baker authored July 27, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  View/Helper/FacebookHelper.php
2  View/Helper/FacebookHelper.php
@@ -494,7 +494,7 @@ public function like($options = array()){
494 494
 	public function init($options = null, $reload = true) {
495 495
 		$options = array_merge(array(
496 496
 			'perms' => 'email'
497  
-		), $options);
  497
+		), (array)$options);
498 498
 		if ($appId = FacebookInfo::getConfig('appId')) {
499 499
 			$init = '<div id="fb-root"></div>';
500 500
 			$init .= '<script src="//connect.facebook.net/en_US/all.js"></script>';

0 notes on commit 523aeaa

Please sign in to comment.
Something went wrong with that request. Please try again.