From f69c198183feada689e9f4848a57762e17ad0deb Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 15 Jun 2016 12:09:24 +0200 Subject: [PATCH] * Addressbook/Mail: fix PHP Fatal error when clicking on "add new contact" icon in mail --- addressbook/inc/class.addressbook_ui.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index 20b8f2d9e0..9e099b28a7 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -1000,7 +1000,7 @@ window.egw_LAB.wait(function() { Api\Cache::setSession('addressbook','index',$query); Api\Cache::setSession('addressbook', 'advanced_search', false); } - + /** * apply an action to multiple contacts * @@ -2471,7 +2471,7 @@ window.egw_LAB.wait(function() { // if email changed, check for doublicates if (in_array($name, array('email', 'email_home'))) { - if (preg_match('/^'.url_widget::EMAIL_PREG.'$/i', $values[$name])) // only search for real email addresses, to not return to many contacts + if (preg_match('/^'.Etemplate\Widget\Url::EMAIL_PREG.'$/i', $values[$name])) // only search for real email addresses, to not return to many contacts { $contacts = parent::search(array( 'email' => $values[$name],