X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/903dae76e54a4e0c081532a8113c00ef1b56a1b5..a8967b288d201edff6e4f87e7b0bccb1bf55c483:/expenses.php diff --git a/expenses.php b/expenses.php index e1eaedda..2c25bde6 100644 --- a/expenses.php +++ b/expenses.php @@ -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'));