Refactoring - more usage of ttUser::isPluginEnabled().
[timetracker.git] / WEB-INF / templates / mobile / timer.tpl
index b32da74..5df54cb 100644 (file)
@@ -221,7 +221,7 @@ startTimer();
     <tr><td>{$i18n.label.client}:</td></tr>
     <tr><td>{$forms.timerRecordForm.client.control}</td></tr>
 {/if}
-{if in_array('iv', explode(',', $user->plugins))}
+{if $user->isPluginEnabled('iv')}
     <tr><td><label>{$forms.timerRecordForm.billable.control}{$i18n.form.time.billable}</label></td></tr>
 {/if}
 {if ($custom_fields && $custom_fields->fields[0])}