mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-26 23:35:02 +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 {
|
||||
eval 'require PandoraFMS::Enterprise;';
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Ops
|
||||
if ($@) {
|
||||
# Enterprise.pm not found.
|
||||
return 0 if ($@ =~ m/PandoraFMS\/Enterprise\.pm.*\@INC/);
|
||||
|
||||
open (STDERR, ">> " . $pa_config->{'errorlogfile'});
|
||||
print STDERR $@;
|
||||
close (STDERR);
|
||||
|
Loading…
x
Reference in New Issue
Block a user