From: Jan Schneider Date: Sat, 15 Aug 2009 08:26:05 +0000 (+0200) Subject: We need to wrap session_destroy() to avoid warnings if no session has been started. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=61390c1f227fb1c6facdafe4ecf5aaae3ec89d32;p=horde.git We need to wrap session_destroy() to avoid warnings if no session has been started. --- diff --git a/framework/Cli/lib/Horde/Cli.php b/framework/Cli/lib/Horde/Cli.php index bdd8324bb..0d1c26912 100644 --- a/framework/Cli/lib/Horde/Cli.php +++ b/framework/Cli/lib/Horde/Cli.php @@ -182,7 +182,7 @@ class Horde_Cli $this->_red_end = $this->_green_end = $this->_yellow_end = $this->_blue_end = ''; } - register_shutdown_function('session_destroy'); + register_shutdown_function(array($this, '_shutdown')); } /**