X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FBAO%2FWebsite.php;h=868382130e6630450a0792561fd8cebede022a53;hb=53310fc2e82a7d5d604380b16e1e795fd9882e21;hp=050502c14a06a627791d074da0cbce864a2ea9e8;hpb=51daafaadd025703b2f8d6e3d27898e3768908f9;p=civicrm-core.git diff --git a/CRM/Core/BAO/Website.php b/CRM/Core/BAO/Website.php index 050502c14a..868382130e 100644 --- a/CRM/Core/BAO/Website.php +++ b/CRM/Core/BAO/Website.php @@ -1,7 +1,7 @@ contact_id = $params['contact_id']; $website->find(); @@ -159,15 +159,16 @@ class CRM_Core_BAO_Website extends CRM_Core_DAO_Website { /** * Get all the websites for a specified contact_id * - * @param int $id the contact id + * @param int $id + * The contact id. * * @param bool $updateBlankLocInfo * - * @return array the array of website details - * @access public + * @return array + * the array of website details * @static */ - static function allWebsites($id, $updateBlankLocInfo = FALSE) { + public static function allWebsites($id, $updateBlankLocInfo = FALSE) { if (!$id) { return NULL; } @@ -179,8 +180,8 @@ SELECT id, website_type_id $params = array(1 => array($id, 'Integer')); $websites = $values = array(); - $dao = CRM_Core_DAO::executeQuery($query, $params); - $count = 1; + $dao = CRM_Core_DAO::executeQuery($query, $params); + $count = 1; while ($dao->fetch()) { $values = array( 'id' => $dao->id, @@ -197,4 +198,3 @@ SELECT id, website_type_id return $websites; } } -