centreon / nagiosToCentreon

Import your nagios config files into Centreon DB... And it rocks !
Apache License 2.0
9 stars 13 forks source link

defined(@array) is deprecated #7

Closed btassite closed 8 years ago

btassite commented 8 years ago

I guess this is cosmetic:

defined(@array) is deprecated at nagios_reader_to_centreon_clapi.pl line 203. (Maybe you should just omit the defined()?)

Fixed it by changing:

$ diff ../../../nagios_reader_to_centreon_clapi.pl nagios_reader_to_centreon_clapi.pl
203c203
<               if ( defined ( $contact->contactgroups ) && defined ( @{$contact->contactgroups} ) ) {

---
>               if ( defined ( $contact->contactgroups ) && @{$contact->contactgroups} ) {