Skip to content

Commit

Permalink
[mms] Only run shutdown task if the tasklist is currently incomplete.
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jan 28, 2014
1 parent 889e361 commit 34370a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion framework/LoginTasks/lib/Horde/LoginTasks.php
Expand Up @@ -73,7 +73,9 @@ public function __construct(Horde_LoginTasks_Backend $backend)
$this->_createTaskList();
}

register_shutdown_function(array($this, 'shutdown'));
if ($this->_tasklist !== true) {
register_shutdown_function(array($this, 'shutdown'));
}
}

/**
Expand Down
4 changes: 2 additions & 2 deletions framework/LoginTasks/package.xml
Expand Up @@ -22,7 +22,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [mms] Only run shutdown task if the tasklist is currently incomplete.
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -654,7 +654,7 @@
<date>2013-01-09</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [mms] Only run shutdown task if the tasklist is currently incomplete.
</notes>
</release>
</changelog>
Expand Down

0 comments on commit 34370a7

Please sign in to comment.