fix unused variable to not be a reference & default to an array per bao standards
[civicrm-core.git] / CRM / Core / BAO / Website.php
index 69befbbba84e88a354341b74e780ebd8116d5c29..15d58ed5a2d25f9591f0b3414782d6c791a90138 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.4                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2013                                |
  +--------------------------------------------------------------------+
@@ -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;