mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-03 09:45:03 +02:00
routeros 7.18 changelog "has put !empty sentence when API query returns nothing"; so i try to add that type, maybe works
This commit is contained in:
parent
eea99d218d
commit
986016083b
1 changed files with 6 additions and 1 deletions
|
@ -46,7 +46,11 @@ class Response extends Message
|
|||
/**
|
||||
* The last response for a request.
|
||||
*/
|
||||
const TYPE_FINAL = '!done';
|
||||
const TYPE_FINAL = '!done';/**
|
||||
|
||||
* The empty response for a request.
|
||||
*/
|
||||
const TYPE_EMPTY = '!empty';
|
||||
|
||||
/**
|
||||
* A response with data.
|
||||
|
@ -246,6 +250,7 @@ class Response extends Message
|
|||
{
|
||||
switch ($type) {
|
||||
case self::TYPE_FINAL:
|
||||
case self::TYPE_EMPTY:
|
||||
case self::TYPE_DATA:
|
||||
case self::TYPE_ERROR:
|
||||
case self::TYPE_FATAL:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue