Error in the code cacti 0.8.8d

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
harmless
Posts: 4
Joined: Fri Jun 26, 2015 1:03 am

Error in the code cacti 0.8.8d

Post by harmless »

I found the error in your code in lib/api_data_source.php on line 45
It's my patch to fix this issue

Code: Select all

--- lib/api_data_source.php.bak 2015-06-08 20:57:48.000000000 +0300
+++ lib/api_data_source.php     2015-06-26 01:57:04.835659385 +0300
@@ -42,7 +42,7 @@

 function api_data_source_remove_multi($local_data_ids) {
        // Shortcut out if no data
-       if (sizeof($local_data_ids)) {
+       if (!sizeof($local_data_ids)) {
                return;
        }

User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Error in the code cacti 0.8.8d

Post by BSOD2600 »

thanks. this has already been filed under http://bugs.cacti.net/view.php?id=2586
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests