From 11069cd1f56bd102563f8fcd6b72d23326c7184f Mon Sep 17 00:00:00 2001
From: roeldeleender <roeldeleender@10.1.1.53>
Date: Sep 4, 2012 8:45:47 AM
Subject: [PATCH] Issue #1772986 by roeldeleender: Fix bug empty property.


diff --git a/fboauth/includes/fboauth.field.inc b/fboauth/includes/fboauth.field.inc
index faae994..1b823ec 100644
--- a/fboauth/includes/fboauth.field.inc
+++ b/fboauth/includes/fboauth.field.inc
@@ -153,8 +153,9 @@
  * Select the best value from a list field based on a Facebook property value.
  */
 function fboauth_field_convert_list($facebook_property_name, $fbuser, $field, $instance) {
+  
   // We can't import anything other than strings into selects.
-  if (!is_string($fbuser->$facebook_property_name)) {
+  if (empty($facebook_property_name) || !is_string($fbuser->$facebook_property_name)) {
     return;
   }
 
