search for: fql_query_response

Displaying 1 result from an estimated 1 matches for "fql_query_response".

2008 Mar 13
0
ActionView::TemplateError when FQL query does not return any results
...b/facebooker/parser.rb =================================================================== --- vendor/plugins/facebooker/lib/facebooker/parser.rb (revision 200) +++ vendor/plugins/facebooker/lib/facebooker/parser.rb (working copy) @@ -249,7 +249,11 @@ def self.process(data) root = element(''fql_query_response'', data) first_child = root.children.reject{|c| c.kind_of?(REXML::Text)}.first - [first_child.name, array_of_hashes(root, first_child.name)] + if first_child.nil? + [nil, array_of_hashes(root, nil)] + else + [first_child.name, array_of_hashes(root, first_child.name)] + end end end ========...