Avoid CiviCRM running full drupal cache flush, as this results in CiviCRM clobbering...
[civicrm-core.git] / CRM / Profile / Page / Router.php
index c139b1bc814c65d5e82fb5a4cffd369dfb46f5fa..511aee992bc51f8f2b2502784bf579615178e08d 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014                                |
+ | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
  * $Id$
  *
  */
@@ -45,11 +45,10 @@ class CRM_Profile_Page_Router extends CRM_Core_Page {
    *   this array contains the arguments of the url.
    *
    * @return string|void
-   * @static
    */
   public function run($args = NULL) {
     if ($args[1] !== 'profile') {
-      return;
+      return NULL;
     }
 
     $secondArg = CRM_Utils_Array::value(2, $args, '');
@@ -76,8 +75,7 @@ class CRM_Profile_Page_Router extends CRM_Core_Page {
 
       // make sure that this profile enables mapping
       // CRM-8609
-      $isMap =
-        CRM_Core_DAO::getFieldValue('CRM_Core_DAO_UFGroup', $profileGID, 'is_map');
+      $isMap = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_UFGroup', $profileGID, 'is_map');
       if (!$isMap) {
         CRM_Core_Error::statusBounce(ts('This profile does not have the map feature turned on.'));
       }
@@ -127,7 +125,6 @@ class CRM_Profile_Page_Router extends CRM_Core_Page {
     }
 
     CRM_Utils_System::permissionDenied();
-    return;
   }
 
 }