Permalink
Browse files

Merge pull request #4 from letmein/patch-1

'sig' is not initialized in Controller#fetch_client_and_user
  • Loading branch information...
2 parents 18ee331 + a989fc3 commit 8dc1d694cc9c0720d8427d6f51570fe5d0244fa3 @dekart committed Oct 3, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/facebooker2/rails/controller.rb
@@ -46,8 +46,8 @@ def current_facebook_client
def fetch_client_and_user
unless @_fb_user_fetched
# Try to authenticate from the signed request first
- fetch_client_and_user_from_signed_request
- fetch_client_and_user_from_cookie if @_current_facebook_client.nil? and !signed_request_from_logged_out_user?
+ sig = fetch_client_and_user_from_signed_request
+ sig = fetch_client_and_user_from_cookie if @_current_facebook_client.nil? and !signed_request_from_logged_out_user?
#write the authentication params to a new cookie
if !@_current_facebook_client.nil?

0 comments on commit 8dc1d69

Please sign in to comment.