From 9a5ac8f74632d6ea57fe2e64e9fd696689cb846e Mon Sep 17 00:00:00 2001 From: OlivierRaginel Date: Mon, 27 Jul 2009 09:29:55 +0000 Subject: [PATCH] Item3695: Fix Meta fireDependency when there is no cache git-svn-id: http://svn.foswiki.org/trunk@4558 0b4bb1d4-4e5a-0410-9cc4-b2b747904278 --- core/lib/Foswiki/Meta.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/lib/Foswiki/Meta.pm b/core/lib/Foswiki/Meta.pm index d0206385f9..5fa7c927f0 100644 --- a/core/lib/Foswiki/Meta.pm +++ b/core/lib/Foswiki/Meta.pm @@ -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}); }