Permalink
Browse files

'sig' is not initialized in Controller#fetch_client_and_user

  • Loading branch information...
1 parent 18ee331 commit a989fc3ac2864e9b0afa5db3804c512d80370cd8 @letmein-test letmein-test committed Sep 22, 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 a989fc3

Please sign in to comment.