Skip to content

Commit

Permalink
Item3695: Fix Meta fireDependency when there is no cache
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@4558 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
OlivierRaginel authored and OlivierRaginel committed Jul 27, 2009
1 parent b95df53 commit 9a5ac8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/lib/Foswiki/Meta.pm
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,9 @@ within the Foswiki::PageCache. See Foswiki::PageCache::fireDependency().
=cut

sub fireDependency {
return $_[0]->{_session}->{cache}->fireDependency(
my $cache = $_[0]->{_session}->{cache};
return unless $cache;
return $cache->fireDependency(
$_[0]->{_web}, $_[0]->{_topic});
}

Expand Down

0 comments on commit 9a5ac8f

Please sign in to comment.