From: Michael M Slusarz Date: Wed, 14 Oct 2009 17:00:26 +0000 (-0600) Subject: Fix storing IMP_Compose in session on shutdown X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6cb33f771ef015d07f6b762d688d9a10e8ad572a;p=horde.git Fix storing IMP_Compose in session on shutdown --- diff --git a/imp/lib/Compose.php b/imp/lib/Compose.php index 0013641df..d6ae9b5f2 100644 --- a/imp/lib/Compose.php +++ b/imp/lib/Compose.php @@ -119,6 +119,14 @@ class IMP_Compose protected function __construct($cacheid) { $this->_cacheid = $cacheid; + $this->__wakeup(); + } + + /** + * Code to run on unserialize(). + */ + public function __wakeup() + { register_shutdown_function(array($this, 'shutdown')); }