Fix reading status prop for cutom pools

This commit is contained in:
Daniel Berteaud 2017-07-14 16:53:28 +02:00
parent a317932158
commit 05acd70658
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ _EOF
}
$OUT .= "# Custom PHP pools\n";
foreach my $pool ($p->get_all_by_prop(type => 'pool')){
next if ($pool->prop('status' || 'enabled') ne 'enabled');
next if (($pool->prop('status') || 'enabled') ne 'enabled');
my $key = $pool->key;
my $ver = $pool->prop('Version') || '';
$OUT .=<<_EOF;