cfmgrv4 init...10
This commit is contained in:
parent
7f06e906a5
commit
6478c11eeb
@ -149,7 +149,11 @@ class ZoneModel extends CommonModel
|
|||||||
$recordModel->setList_WordFilter($word);
|
$recordModel->setList_WordFilter($word);
|
||||||
$recorde_entitys = $recordModel->select(RecordModel::PARENT)->findAll();
|
$recorde_entitys = $recordModel->select(RecordModel::PARENT)->findAll();
|
||||||
$zone_uids = array_column($recorde_entitys, RecordModel::PARENT);
|
$zone_uids = array_column($recorde_entitys, RecordModel::PARENT);
|
||||||
$this->orWhereIn(self::TABLE . '.' . self::PK, array_values($zone_uids));
|
if (count($zone_uids)) {
|
||||||
|
$this->orWhereIn(self::TABLE . '.' . self::PK, array_values($zone_uids));
|
||||||
|
} else {
|
||||||
|
$this->orWhereIn(self::TABLE . '.' . self::PK, ['empty']);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->orLike(self::TABLE . "." . self::TITLE, $word, 'both');
|
$this->orLike(self::TABLE . "." . self::TITLE, $word, 'both');
|
||||||
$this->orLike(self::TABLE . '.name_servers', $word, 'both');
|
$this->orLike(self::TABLE . '.name_servers', $word, 'both');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user