X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FPage%2FView%2FContactSmartGroup.php;h=7ac5c0a5f4a5900031128981aa13bcde6f129813;hb=76e7a76c36e82fca4901e87abf8f1afddf2384ef;hp=b0eee426f1dc40214c2d47568f88b157b1d50f9c;hpb=58a50b22e20f112fdbfc7e50f18353c311ceb1ae;p=civicrm-core.git diff --git a/CRM/Contact/Page/View/ContactSmartGroup.php b/CRM/Contact/Page/View/ContactSmartGroup.php index b0eee426f1..7ac5c0a5f4 100644 --- a/CRM/Contact/Page/View/ContactSmartGroup.php +++ b/CRM/Contact/Page/View/ContactSmartGroup.php @@ -1,7 +1,7 @@ _contactId, 'Added'); // keep track of all 'added' contact groups so we can remove them from the smart group @@ -58,11 +57,11 @@ class CRM_Contact_Page_View_ContactSmartGroup extends CRM_Core_Page { } $allGroup = CRM_Contact_BAO_GroupContactCache::contactGroup($this->_contactId); - $this->assign('groupSmart' , NULL); + $this->assign('groupSmart', NULL); $this->assign('groupParent', NULL); if (!empty($allGroup)) { - $smart = $parent = array( ); + $smart = $parent = array(); foreach ($allGroup['group'] as $group) { // delete all smart groups which are also in static groups if (isset($staticGroups[$group['id']])) { @@ -85,7 +84,7 @@ class CRM_Contact_Page_View_ContactSmartGroup extends CRM_Core_Page { } } - function preProcess() { + public function preProcess() { $this->_contactId = CRM_Utils_Request::retrieve('cid', 'Positive', $this, TRUE); $this->assign('contactId', $this->_contactId); @@ -97,14 +96,13 @@ class CRM_Contact_Page_View_ContactSmartGroup extends CRM_Core_Page { } /** - * This function is the main function that is called + * the main function that is called * when the page loads, it decides the which action has * to be taken for the page. * - * return null - * @access public + * @return null */ - function run() { + public function run() { $this->preProcess(); $this->browse(); return parent::run();