Menu

#1010 vCard import unable to handle empty fields

0.6.x
closed-fixed
Contacts (157)
5
2003-05-28
2003-05-28
No

When using vCard import with only a few fields like this:

BEGIN:VCARD
VERSION:2.1
N:;Test
FN:Test
EMAIL;PREF;INTERNET:test@me.bogus
REV:20030528T163604Z
END:VCARD

you will receive these messages:

Warning: implode() [function.implode]: Bad arguments.
in /srv/www/htdocs/moregroupware/include/vcard/mgw_C
ontact_Vcard_Parse.php on line 56

Warning: reset() [function.reset]: Passed variable is not
an array or object
in /srv/www/htdocs/moregroupware/include/vcard/mgw_C
ontact_Vcard_Parse.php on line 164

Warning: current() [function.current]: Passed variable is
not an array or object
in /srv/www/htdocs/moregroupware/include/vcard/mgw_C
ontact_Vcard_Parse.php on line 167

Warning: reset() [function.reset]: Passed variable is not
an array or object
in /srv/www/htdocs/moregroupware/include/vcard/mgw_C
ontact_Vcard_Parse.php on line 208

Warning: current() [function.current]: Passed variable is
not an array or object
in /srv/www/htdocs/moregroupware/include/vcard/mgw_C
ontact_Vcard_Parse.php on line 210

Warning: reset() [function.reset]: Passed variable is not
an array or object
in /srv/www/htdocs/moregroupware/include/vcard/mgw_C
ontact_Vcard_Parse.php on line 208

Warning: current() [function.current]: Passed variable is
not an array or object
in /srv/www/htdocs/moregroupware/include/vcard/mgw_C
ontact_Vcard_Parse.php on line 210

Warning: reset() [function.reset]: Passed variable is not
an array or object
in /srv/www/htdocs/moregroupware/include/vcard/mgw_C
ontact_Vcard_Parse.php on line 208

Warning: current() [function.current]: Passed variable is
not an array or object
in /srv/www/htdocs/moregroupware/include/vcard/mgw_C
ontact_Vcard_Parse.php on line 210

Warning: reset() [function.reset]: Passed variable is not
an array or object
in /srv/www/htdocs/moregroupware/include/vcard/mgw_C
ontact_Vcard_Parse.php on line 208

Warning: current() [function.current]: Passed variable is
not an array or object
in /srv/www/htdocs/moregroupware/include/vcard/mgw_C
ontact_Vcard_Parse.php on line 210

Warning: reset() [function.reset]: Passed variable is not
an array or object
in /srv/www/htdocs/moregroupware/include/vcard/mgw_C
ontact_Vcard_Parse.php on line 134

Warning: current() [function.current]: Passed variable is
not an array or object
in /srv/www/htdocs/moregroupware/include/vcard/mgw_C
ontact_Vcard_Parse.php on line 136

Discussion

  • Karsten Dambekalns

    Logged In: YES
    user_id=105527

    What is left are some notices coming from
    Contact_Vcard_Parse.php directly. But the warnings are all gone.

     
  • Karsten Dambekalns

    • status: open --> closed-fixed
     
  • Karsten Dambekalns

    Logged In: YES
    user_id=105527

    Hi,

    the bug you described is solved and commited to CVS.

    You can check out CVS to have this bug fixed or wait
    until next release.

    -
    Moregroupware Developer Team

     

Log in to post a comment.