]> wagnertech.de Git - timetracker.git/blobdiff - mobile/expenses.php
Refactoring, moving plugin config options into config field.
[timetracker.git] / mobile / expenses.php
index 1b8f7cda9f268f7bb19b4c36bf7a9a4532b6d82e..3b229368ebc6a0a6c8eb366b46b9086f640bcba1 100644 (file)
@@ -195,7 +195,7 @@ $form->addInput(array('type'=>'submit','name'=>'btn_submit','onclick'=>'browser_
 if ($request->isPost()) {
   if ($request->getParameter('btn_submit')) {
     // Validate user input.
-    if ($user->isPluginEnabled('cl') && $user->isPluginEnabled('cm') && !$cl_client)
+    if ($user->isPluginEnabled('cl') && $user->isOptionEnabled('client_required') && !$cl_client)
       $err->add($i18n->get('error.client'));
     if ($show_project && !$cl_project)
       $err->add($i18n->get('error.project'));