Skip to content

Commit

Permalink
Fix scope.
Browse files Browse the repository at this point in the history
Another fix for Bug: 13642
  • Loading branch information
mrubinsk committed Oct 21, 2014
1 parent a94aeed commit b5c169f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nag/lib/Api.php
Expand Up @@ -158,9 +158,9 @@ public function addTasklist($name, $description = '', $color = '', array $params

$name = $tasklist->getName();
if (!empty($params['synchronize'])) {
$sync = @unserialize($prefs->getValue('sync_lists'));
$sync = @unserialize($GLOBALS['prefs']->getValue('sync_lists'));
$sync[] = $name;
$prefs->setValue('sync_lists', serialize($sync));
$GLOBALS['prefs']->setValue('sync_lists', serialize($sync));
}

return $name;
Expand Down

0 comments on commit b5c169f

Please sign in to comment.