CRM-14028 - Workaround the number 0 == empty() php bug
[civicrm-core.git] / CRM / Core / BAO / Website.php
index b40cf4c52fd8d313270c5b5104793ec85d2b0e33..15d58ed5a2d25f9591f0b3414782d6c791a90138 100644 (file)
@@ -91,7 +91,7 @@ class CRM_Core_BAO_Website extends CRM_Core_DAO_Website {
       ) {
         foreach ($ids as $id => $value) {
           if (($value['website_type_id'] == $values['website_type_id'])
-            && CRM_Utils_Array::value('url', $value)) {
+            && CRM_Utils_Array::value('url', $values)) {
             $values['id'] = $id;
             unset($ids[$id]);
             break;