mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
Prevent recording "Can't locate PandoraFMS/Enterprise.pm in @INC.." to the error log (picked from develop branch).
This commit is contained in:
parent
520a56f787
commit
402078d7c6
@ -587,11 +587,14 @@ sub enterprise_load ($) {
|
|||||||
else {
|
else {
|
||||||
eval 'require PandoraFMS::Enterprise;';
|
eval 'require PandoraFMS::Enterprise;';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Ops
|
# Ops
|
||||||
if ($@) {
|
if ($@) {
|
||||||
|
# Enterprise.pm not found.
|
||||||
|
return 0 if ($@ =~ m/PandoraFMS\/Enterprise\.pm.*\@INC/);
|
||||||
|
|
||||||
open (STDERR, ">> " . $pa_config->{'errorlogfile'});
|
open (STDERR, ">> " . $pa_config->{'errorlogfile'});
|
||||||
print STDERR $@;
|
print STDERR $@;
|
||||||
close (STDERR);
|
close (STDERR);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user