Skip to content

Commit

Permalink
Item13360: Undefined variables when uninstall ext.
Browse files Browse the repository at this point in the history
  • Loading branch information
gac410 committed Apr 8, 2015
1 parent 4ae8ec5 commit d2ceb73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Configure/Package.pm
Expand Up @@ -1306,7 +1306,7 @@ sub uninstall {
$reporter->WARN(
"Don't forget to save your configuration to complete removal of "
. join( ', ', @plugins ) )
if ( scalar( keys %{ $reporter->changes() } ) );
if ( $reporter->changes() && scalar( keys %{ $reporter->changes() } ) );

$reporter->NOTE( "> Removal "
. ( $this->option('SIMULATE') ? 'simulated' : 'finished' ) );
Expand Down
2 changes: 1 addition & 1 deletion core/tools/extender.pl
Expand Up @@ -265,7 +265,7 @@ sub _uninstall {

my ( $ok, $plugins ) = $thispkg->uninstall($reporter);

if ( $ok && scalar @$plugins && !$simulate ) {
if ( $ok && defined $plugins && scalar @$plugins && !$simulate ) {
$reporter->NOTE(
"> Don't forget to disable uninstalled plugins:
"
Expand Down

0 comments on commit d2ceb73

Please sign in to comment.