]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/ttTeamHelper.class.php
Fixed problem with saving plugin config.
[timetracker.git] / WEB-INF / lib / ttTeamHelper.class.php
index d607ca1bb06d04f54ec5b390932042e2ad68beba..868e67f3b3f58a7a6f820e0b357fb09cc2e9d588 100644 (file)
@@ -1044,10 +1044,11 @@ class ttTeamHelper {
 
     $plugins = implode(',', $plugin_array);
     if ($plugins != $user->plugins) {
-      return ttTeamHelper::update($user->team_id, array(
-        'name' => $user->team,
-        'plugins' => $plugins));
+      if (!ttTeamHelper::update($user->team_id, array('name' => $user->team,'plugins' => $plugins)))
+        return false;
+      $user->plugins = $plugins;
     }
+
     return true;
   }
 }