X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a26a0989ad93cce9de9f45312990da9610e53045..040c6516659e15f360159859b783e3722e86f370:/time.php diff --git a/time.php b/time.php index e7ff10ae..ca48056a 100644 --- a/time.php +++ b/time.php @@ -306,7 +306,7 @@ if ($request->isPost()) { if ($request->getParameter('btn_submit')) { // Validate user input. - if ($showClient && $user->isPluginEnabled('cm') && !$cl_client) + if ($showClient && $user->isOptionEnabled('client_required') && !$cl_client) $err->add($i18n->get('error.client')); if ($custom_fields) { if (!ttValidString($cl_cf_1, !$custom_fields->fields[0]['required'])) $err->add($i18n->get('error.field'), $custom_fields->fields[0]['label']);