Skip to content

Commit

Permalink
Fix iterating over task results when not returning all tasks.
Browse files Browse the repository at this point in the history
Fixes (probably among other things) syncing tasks to ActiveSync
when multiplexing lists.
  • Loading branch information
mrubinsk committed Feb 1, 2016
1 parent a743e97 commit 48f5e63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nag/lib/Driver/Sql.php
Expand Up @@ -67,8 +67,10 @@ public function getByUID($uids, array $tasklists = null, $getall = true)
}

$owner_lists = Nag::listTasklists(true);

$task = null;
foreach ($results as $row) {
$results->reset();
while ($row = $results->each()) {
if (isset($owner_lists[$row->tasklist])) {
$task = $row;
break;
Expand Down

0 comments on commit 48f5e63

Please sign in to comment.