mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-07-13 03:24:23 +02:00
fix(mikrotik): set pool $poolId always empty
This commit is contained in:
parent
2d095aef08
commit
2b8ca5fd85
1 changed files with 1 additions and 1 deletions
|
@ -427,7 +427,7 @@ class Mikrotik
|
||||||
'/ip pool print .proplist=.id',
|
'/ip pool print .proplist=.id',
|
||||||
RouterOS\Query::where('name', $name)
|
RouterOS\Query::where('name', $name)
|
||||||
);
|
);
|
||||||
$poolID = $client->sendSync($printRequest)->getProperty('id');
|
$poolID = $client->sendSync($printRequest)->getProperty('.id');
|
||||||
|
|
||||||
if (empty($poolID)) {
|
if (empty($poolID)) {
|
||||||
self::addPool($client, $name, $ip_address);
|
self::addPool($client, $name, $ip_address);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue