diff --git a/civicrm.module b/civicrm.module index d9bc389e1..200f2e184 100644 --- a/civicrm.module +++ b/civicrm.module @@ -42,6 +42,8 @@ define('CIVICRM_UF_HEAD', TRUE); * @see CiviDrupal\PhpVersionTest::testConstantMatch() */ define('CIVICRM_DRUPAL_PHP_MINIMUM', '7.1.0'); +define('CIVICRM_DRUPAL_MYSQL_MINIMUM', '5.5'); +define('CIVICRM_DRUPAL_NEXT_MYSQL_MINIMUM', '5.6.5'); /** * Adds CiviCRM CSS and JS resources into the header. @@ -600,12 +602,7 @@ function civicrm_form_data($edit, &$user, $category, $reset, $doNotProcess = FAL } } $ctype = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $userID, 'contact_type'); - try { - $profileID = _civicrm_get_user_profile_id($category, $userID, $ctype); - } - catch (Exception $e) { - CRM_Core_Error::fatal($e->getMessage()); - } + $profileID = _civicrm_get_user_profile_id($category, $userID, $ctype); $html = CRM_Core_BAO_UFGroup::getEditHTML($userID, $category, NULL, FALSE, $reset, $profileID, $doNotProcess, $ctype);