mirror of
https://github.com/Cacti/cacti.git
synced 2026-10-23 03:27:02 +09:00
Fix: #6194 - Latest PHP 8.4 causes deprecation warnings in plugins
This commit is contained in:
1 parent
a932ec8bec
commit
35c119f23b
2 files changed
+3
-2
No files matched your search
@@ -342,6 +342,7 @@ Cacti CHANGELOG
|
||||
-issue#5612: Database reconnection can cause errors to be reported incorrectly
|
||||
-issue#5613: Fix returned value if $sau is empty
|
||||
-issue#5641: Cmd poller - add availability test for devices without poller items
|
||||
-issue#6194: Latest PHP 8.4 causes deprecation warnings in plugins
|
||||
-feature#5577: Add Aruba switch, Aruba controller and HPE iLO templates
|
||||
-feature#5597: Add OSCX 6x00 templates
|
||||
|
||||
|
||||
+2
-2
@@ -1416,7 +1416,7 @@ function format_plugin_row($plugin, $last_plugin, $include_ordering, $table) {
|
||||
}
|
||||
|
||||
if ($config['poller_id'] > 1) {
|
||||
if (strpos($plugin['capabilities'], 'remote_collect:1') !== false || strpos($plugin['capabilities'], 'remote_poller:1') !== false) {
|
||||
if (isset($plugin['capabilities']) && (strpos($plugin['capabilities'], 'remote_collect:1') !== false || strpos($plugin['capabilities'], 'remote_poller:1') !== false)) {
|
||||
if ($plugin['remote_status'] == '-1') {
|
||||
$status = plugin_is_compatible($plugin['plugin']);
|
||||
$row .= ' / ' . __('Not Compatible, \'%s\'', $status['requires']);
|
||||
@@ -1934,7 +1934,7 @@ function plugin_actions($plugin, $table) {
|
||||
}
|
||||
|
||||
if ($config['poller_id'] > 1) {
|
||||
if (strpos($plugin['capabilities'], 'remote_collect:1') !== false || strpos($plugin['capabilities'], 'remote_poller:1') !== false) {
|
||||
if (isset($plugins['capabilities']) && (strpos($plugin['capabilities'], 'remote_collect:1') !== false || strpos($plugin['capabilities'], 'remote_poller:1') !== false)) {
|
||||
if ($plugin['remote_status'] == 1) { // Installed and Active
|
||||
// ToDo: Disabling here does not make much sense as the main will be replicated
|
||||
// with any change of any other plugin thus undoing. Fix that moving forward
|
||||
|
||||
Reference in new issue
Block a user