Skip to content
Snippets Groups Projects
Commit 2eaead8c authored by jaapjansma's avatar jaapjansma
Browse files

used version_compare rather than a manual version compare

parent 86dffa42
Branches
Tags
No related merge requests found
......@@ -13,7 +13,7 @@ class CRM_CivirulesActions_Activity_Form_Activity extends CRM_CivirulesActions_F
public function preProcess()
{
$version = CRM_Core_BAO_Domain::version();
if($version <= 4.4) {
if (version_compare($version, '4.4', '<=')) {
$this->use_old_contact_ref_fields = true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment