Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Item14300: fix testing for SolrPlugin
  • Loading branch information
MichaelDaum committed Jan 23, 2017
1 parent bc658ab commit b42d537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Foswiki/Plugins/LdapNgPlugin.pm
Expand Up @@ -19,7 +19,7 @@ use strict;
use warnings;

our $core;
our $VERSION = '6.40';
our $VERSION = '6.41';
our $RELEASE = '16 Jan 2017';
our $NO_PREFS_IN_TOPIC = 1;
our $SHORTDESCRIPTION = 'Query and display data from an LDAP directory';
Expand All @@ -39,7 +39,7 @@ sub initPlugin {
return getCore(shift)->handleEmailToWikiName(@_);
});

if ($Foswiki::cfg{Plugins}{SolrPlugin}{Enabled}) {
if ($Foswiki::cfg{Plugins}{SolrPlugin} && $Foswiki::cfg{Plugins}{SolrPlugin}{Enabled}) {
require Foswiki::Plugins::SolrPlugin;
Foswiki::Plugins::SolrPlugin::registerIndexTopicHandler(\&indexTopicHandler);
}
Expand Down

0 comments on commit b42d537

Please sign in to comment.