Work in progress switching to ttUser::isPluginEnabled().
[timetracker.git] / charts.php
index a58c3d8..0883450 100644 (file)
@@ -73,7 +73,7 @@ if (MODE_TIME == $user->tracking_mode) {
   if ($cl_type == CHART_CLIENTS) {
     if (!in_array('cl', explode(',', $user->plugins)))
       $cl_type = CHART_PROJECTS;       
-  } else if ($cl_type == CHART_TASKS) {
+  } elseif ($cl_type == CHART_TASKS) {
     if (MODE_PROJECTS_AND_TASKS != $user->tracking_mode)
       $cl_type = CHART_PROJECTS;
   }
@@ -117,7 +117,7 @@ if ($request->getMethod( )== 'POST') {
       exit();
     }
   }
-} // POST
+} // isPost
 
 // Elements of chartForm.
 $chart_form = new Form('chartForm');