Commit 723d4ec6 authored by anarcat's avatar anarcat Committed by anarcat

tolerate non-array slave_servers sometimes sent from the frontend

parent e353d3b6
......@@ -39,6 +39,9 @@ class provisionConfig_bind_zone extends provisionConfig_dns_zone {
function process() {
$slaves = array();
if (!is_array($this->server->slave_servers)) {
$this->server->slave_servers = array($this->server->slave_servers);
foreach ($this->server->slave_servers as $slave) {
$slaves[] = d($slave)->remote_host;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment