Aleksander Machniak
2016-05-06 acf633c73bc8df9a5036bc52d7568f4213ab73c7
plugins/database_attachments/database_attachments.php
@@ -43,9 +43,9 @@
        $status = $cache->write($key, $data);
        if ($status) {
            $args['id'] = $key;
            $args['id']     = $key;
            $args['status'] = true;
            unset($args['path']);
            $args['path']   = null;
        }
        return $args;
@@ -155,7 +155,7 @@
            $type   = $rcmail->config->get('database_attachments_cache', 'db');
            // Init SQL cache (disable cache data serialization)
            $this->cache = $rcmail->get_cache($this->prefix, 'db', $ttl, false);
            $this->cache = $rcmail->get_cache($this->prefix, $type, $ttl, false);
        }
        return $this->cache;