diff --git a/pandora_server/lib/PandoraFMS/DataServer.pm b/pandora_server/lib/PandoraFMS/DataServer.pm index 1e827ec7b0..134fc43ed2 100644 --- a/pandora_server/lib/PandoraFMS/DataServer.pm +++ b/pandora_server/lib/PandoraFMS/DataServer.pm @@ -195,11 +195,11 @@ sub data_consumer ($$) { eval { threads->yield; # XML::SAX::ExpatXS is not thread safe. - if ($XML::Simple::PREFERRED_PARSER == 'XML::SAX::ExpatXS') { + if ($XML::Simple::PREFERRED_PARSER eq 'XML::SAX::ExpatXS') { $XMLinSem->down(); } $xml_data = XMLin ($file_name, forcearray => 'module'); - if ($XML::Simple::PREFERRED_PARSER == 'XML::SAX::ExpatXS') { + if ($XML::Simple::PREFERRED_PARSER eq 'XML::SAX::ExpatXS') { $XMLinSem->up(); } };