dns/bind: style sweep

This commit is contained in:
Franco Fichtner
2019-03-31 12:12:16 +02:00
parent afd6db984d
commit d242d5c792
@@ -61,13 +61,16 @@ class RecordController extends ApiMutableModelControllerBase
$domain = $this->request->get('domain');
$filter_funct = null;
if (!empty($domain)) {
$filter_funct = function($record) use ($domain) {
$filter_funct = function ($record) use ($domain) {
return $record->domain == $domain;
};
}
return $this->searchBase('records.record',
array("enabled", "domain", "name", "type", "value"), null, $filter_funct
return $this->searchBase(
'records.record',
array("enabled", "domain", "name", "type", "value"),
null,
$filter_funct
);
}