X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FBAO%2FWebsite.php;h=050502c14a06a627791d074da0cbce864a2ea9e8;hb=da6b46f4a1c9a3dfd1502637efad4fa003eee61a;hp=15d58ed5a2d25f9591f0b3414782d6c791a90138;hpb=a765d024b0c845ee1233b1811277a9e8ab7ba01a;p=civicrm-core.git diff --git a/CRM/Core/BAO/Website.php b/CRM/Core/BAO/Website.php index 15d58ed5a2..050502c14a 100644 --- a/CRM/Core/BAO/Website.php +++ b/CRM/Core/BAO/Website.php @@ -1,9 +1,9 @@ $value) { - if (($value['website_type_id'] == $values['website_type_id']) - && CRM_Utils_Array::value('url', $values)) { + if (($value['website_type_id'] == $values['website_type_id']) && !empty($values['url'])) { $values['id'] = $id; unset($ids[$id]); break; @@ -99,7 +100,7 @@ class CRM_Core_BAO_Website extends CRM_Core_DAO_Website { } } $values['contact_id'] = $contactID; - if ( CRM_Utils_Array::value('url', $values) ) { + if (!empty($values['url'])) { self::add($values); } } @@ -128,7 +129,10 @@ class CRM_Core_BAO_Website extends CRM_Core_DAO_Website { * Given the list of params in the params array, fetch the object * and store the values in the values array * - * @param array entityBlock input parameters to find object + * @param $params + * @param $values + * + * @internal param \entityBlock $array input parameters to find object * * @return boolean * @access public @@ -157,6 +161,8 @@ class CRM_Core_BAO_Website extends CRM_Core_DAO_Website { * * @param int $id the contact id * + * @param bool $updateBlankLocInfo + * * @return array the array of website details * @access public * @static