diff --git a/class/actions_googleapi.class.php b/class/actions_googleapi.class.php index 523e1c4..d30147c 100644 --- a/class/actions_googleapi.class.php +++ b/class/actions_googleapi.class.php @@ -123,7 +123,7 @@ public function doActions(&$parameters, $object, &$action, $hookmanager) global $langs; $contexts = explode(':', $parameters['context']); - if (in_array('actioncard', $contexts) && isset($parameters['TRemindTypes']) && (int) DOL_VERSION >= 23) { + if (in_array('actioncard', $contexts) && isset($parameters['TRemindTypes'])) { $langs->load('googleapi@googleapi'); $parameters['TRemindTypes'] = array_merge( $parameters['TRemindTypes'], diff --git a/tabs/action/card.php b/tabs/action/card.php index 88681d4..cb6ff83 100644 --- a/tabs/action/card.php +++ b/tabs/action/card.php @@ -174,7 +174,7 @@ 'disabled' => (getDolGlobalString('MAIN_SMS_SENDMODE') ? 0 : 1), ]; } -$TDurationTypes =[ +$TDurationTypes = [ 'y' => $langs->trans('Years'), 'm' => $langs->trans('Month'), 'w' => $langs->trans('Weeks'),