diff --git a/core/cmdbsource.class.inc.php b/core/cmdbsource.class.inc.php index 4b78f0886..cf91820f6 100644 --- a/core/cmdbsource.class.inc.php +++ b/core/cmdbsource.class.inc.php @@ -562,19 +562,21 @@ class CMDBSource { return false; } - if ($aRow['Slave_IO_Running'] != 'Yes') - { - return false; - } if (!isset($aRow['Slave_SQL_Running'])) { return false; } - if ($aRow['Slave_SQL_Running'] != 'Yes') + + // If at least one slave thread is running, then we consider that the slave is enabled + if ($aRow['Slave_IO_Running'] == 'Yes') { - return false; + return true; } - return true; + if ($aRow['Slave_SQL_Running'] == 'Yes') + { + return true; + } + return false; } }