Skip to content

Commit

Permalink
Fix fatal error in database_attachments plugin under some conditions …
Browse files Browse the repository at this point in the history
…(#1489726)
  • Loading branch information
alecpl committed Mar 25, 2014
1 parent bee1e18 commit e435d3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ CHANGELOG Roundcube Webmail
- Fix opening compose screen in new window after saving as draft (#1489643)
- Fix message import dialog when no file is selected (#1489685)
- Fix opening compose screen in new window after saving as draft (#1489643)
- Fix fatal error in database_attachments plugin under some conditions (#1489726)

RELEASE 1.0-rc
--------------
Expand Down
6 changes: 4 additions & 2 deletions plugins/database_attachments/database_attachments.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@ function get($args)
*/
function cleanup($args)
{
$cache = $this->get_cache();
$cache->remove($args['group'], true);
// check if cache object exist, it may be empty on session_destroy (#1489726)
if ($cache = $this->get_cache()) {
$cache->remove($args['group'], true);
}
}

/**
Expand Down

0 comments on commit e435d3b

Please sign in to comment.