Permalink
Browse files

adding a check just in case it might be nil

  • Loading branch information...
1 parent e35c486 commit 3beb342de298f75b9c4ac2b52a7fba5a667f2704 @maleko committed Feb 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/admob.rb
View
@@ -192,7 +192,7 @@ def self.build_post_data(request, session_id, params)
'p' => request.request_uri,
't' => MD5.hexdigest(session_id),
'v' => PUBCODE_VERSION,
- 'o' => request.cookies['admobuu'][0] || request.env['admobuu'],
+ 'o' => request.cookies['admobuu'] ? request.cookies['admobuu'][0] || request.env['admobuu'],
's' => publisher_id,
'a' => analytics_id,
'ma' => params[:markup],

0 comments on commit 3beb342

Please sign in to comment.