Fix undefined definition

This commit is contained in:
Nathan Gray 2016-04-29 14:35:44 +00:00
parent 6260d948a7
commit 980774ffcd

View File

@ -157,8 +157,7 @@ class addressbook_import_vcard implements importexport_iface_import_plugin {
*/ */
public function _vcard($_vcard, $owner) public function _vcard($_vcard, $owner)
{ {
// ToDo: Nathan: $_definition is not defined $charset = $this->definition->plugin_options['charset'];
$charset = $_definition->plugin_options['charset'];
if($charset == 'user') $charset = $GLOBALS['egw_info']['user']['preferences']['addressbook']['vcard_charset']; if($charset == 'user') $charset = $GLOBALS['egw_info']['user']['preferences']['addressbook']['vcard_charset'];
$record = $this->bocontacts->vcardtoegw($_vcard,$charset); $record = $this->bocontacts->vcardtoegw($_vcard,$charset);