$this->_debug("The current maximum replication ID is $max_repl_id");
$this->_debug("The current maximum number of replication agreements for any database is $max_replica_agreements (for $max_replica_agreements_dn)");
$this->_debug("With " . count($replica_hosts) . " replicas, the next is " . ($max_repl_id + 1) . " and the last one is " . ($max_repl_id + count($replica_hosts)));
// Then add the replication agreements
foreach ($replica_hosts as $num => $replica_host) {
- $this->_debug("Scope does not match. VLV: " . var_export($this->_vlv_indexes_and_searches[$base_dn]['scope'], true) . " while looking for " . var_export($scope, true));
+ $this->_debug("Scope does not match. VLV: " . var_export($vlv_indexes[$base_dn]['scope'], true) . " while looking for " . var_export($scope, true));
return false;
}
} else {
$this->_debug("Filter does not match");
return false;
}
} else {
$this->_debug("No VLV for base dn", $base_dn);
return false;
}
}
/**
* Return VLV indexes and searches including necessary configuration
* details.
*/
private function find_vlv_indexes_and_searches($refresh = false)
{
- if (!empty($this->config['vlv'])) {
+ if (isset($this->config['vlv'])) {
if ($this->config['vlv'] === false) {
return array();
} else {
return $this->config['vlv'];
}
}
- if (!$this->_vlv_indexes_and_searches === null) {
+ if ($this->_vlv_indexes_and_searches !== null) {