backdrop-contrib / smart_ip

Backdrop module to identify visitor's geographical location (longitude/latitude), country, region, city and postal code based on the IP address of the visitor
GNU General Public License v2.0
0 stars 1 forks source link

Notice: Undefined property: User::$is_new in smart_ip_user_presave() #3

Open jenlampton opened 5 years ago

jenlampton commented 5 years ago

replace:

if ($account->is_new == TRUE && config_get('smart_ip.settings','smart_ip_save_user_location_creation')) {

with:

if (property_exists($account, 'is_new') && $account->is_new == TRUE && config_get('smart_ip.settings','smart_ip_save_user_location_creation')) {
pgrayove-mcpl commented 1 year ago

WFM