projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37825b8
)
Only destroy the session if we are actually running via the cli.
author
Michael J. Rubinsky
<mrubinsk@horde.org>
Fri, 13 Nov 2009 14:30:30 +0000
(09:30 -0500)
committer
Michael J. Rubinsky
<mrubinsk@horde.org>
Fri, 13 Nov 2009 14:30:30 +0000
(09:30 -0500)
Bug: 8482 and also resolves Bug: 8701
framework/Cli/lib/Horde/Cli.php
patch
|
blob
|
history
diff --git
a/framework/Cli/lib/Horde/Cli.php
b/framework/Cli/lib/Horde/Cli.php
index
875b74c
..
a47d71d
100644
(file)
--- a/
framework/Cli/lib/Horde/Cli.php
+++ b/
framework/Cli/lib/Horde/Cli.php
@@
-184,7
+184,9
@@
class Horde_Cli
// We really want to call this at the end of the script, not in the
// destructor.
- register_shutdown_function(array($this, 'shutdown'));
+ if ($this->_console) {
+ register_shutdown_function(array($this, '_shutdown'));
+ }
}
/**