mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
dns/bind: style sweep
This commit is contained in:
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user