]> wagnertech.de Git - timetracker.git/blobdiff - expenses.php
Refactoring, moving plugin config options into config field.
[timetracker.git] / expenses.php
index e1eaeddae4cd14503a07f53396e455eb75a357ed..2c25bde66e0c91b254fc7be13f5bcf0c9f945524 100644 (file)
@@ -190,7 +190,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'));