Aleksander Machniak
2014-03-25 677fb747c122d84a35654873b00b4a87670dcd33
plugins/database_attachments/database_attachments.php
@@ -126,9 +126,11 @@
     */
    function cleanup($args)
    {
        $cache = $this->get_cache();
        // check if cache object exist, it may be empty on session_destroy (#1489726)
        if ($cache = $this->get_cache()) {
        $cache->remove($args['group'], true);
    }
    }
    /**
     * Helper method to generate a unique key for the given attachment file