Notice: Undefined offset: 0 in pollfield_field_widget_form() (line 340 of /var/www/xxx/sites/all/modules/pollfield/pollfield.module).
Notice: Undefined index: node in pollfield_field_widget_form() (line 344 of /var/www/xxx/sites/all/modules/pollfield/pollfield.module).
Notice: Trying to get property of non-object in pollfield_field_widget_form() (line 344 of /var/www/xxx/sites/all/modules/pollfield/pollfield.module).
Notice: Undefined index: #node in pollfield_field_widget_form() (line 355 of /var/www/xxx/sites/all/modules/pollfield/pollfield.module).
Notice: Trying to get property of non-object in pollfield_field_widget_form() (line 355 of /var/www/xxx/sites/all/modules/pollfield/pollfield.module).
Warning: Invalid argument supplied for foreach() in pollfield_field_widget_form() (line 355 of /var/www/xxx/sites/all/modules/pollfield/pollfield.module).
Notice: Undefined variable: field_lang in pollfield_field_widget_form() (line 358 of /var/www/xxx/sites/all/modules/pollfield/pollfield.module).

please fix these, thank you!