Skip to content

Commit

Permalink
Item9784: Fix uninitialized variable, also Assert
Browse files Browse the repository at this point in the history
Thanks to pharvey for some of the fix.

git-svn-id: http://svn.foswiki.org/trunk@9488 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Oct 3, 2010
1 parent aaf24c8 commit 6d62bc7
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions core/lib/Foswiki/Meta.pm
Expand Up @@ -2430,17 +2430,19 @@ sub onTick {
my $m = $this->new( $this->{_session}, $web );
$m->onTick($time);
}
$it = $this->eachTopic();
while ( $it->hasNext() ) {
my $topic = $it->next();
my $topicObject =
$this->new( $this->{_session}, $this->getPath(), $topic );
$topicObject->onTick($time);
if ( $this->{_web} ) {
$it = $this->eachTopic();
while ( $it->hasNext() ) {
my $topic = $it->next();
my $topicObject =
$this->new( $this->{_session}, $this->getPath(), $topic );
$topicObject->onTick($time);
}
}

# Clean up spurious leases that may have been left behind
# during cancelled topic creation
$this->{_session}->{store}->removeSpuriousLeases( $this->getPath() );
$this->{_session}->{store}->removeSpuriousLeases( $this->getPath() ) if $this->getPath();
}
else {
my $lease = $this->getLease();
Expand Down

0 comments on commit 6d62bc7

Please sign in to comment.