Changeset 685


Ignore:
Timestamp:
Aug 24, 2014, 12:55:47 PM (10 years ago)
Author:
chronos
Message:
  • Opraveno: Při chybné odezvě z API RouterOS je vráceno prázdné pole.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkConfigRouterOS/RouterboardAPI.php

    r682 r685  
    5656      $this->Write('/login');
    5757      $Response = $this->Read(false);
    58       if ($Response[0] == '!done') {
     58      if ((count($Response) > 0) and ($Response[0] == '!done')) {
    5959        if (preg_match_all('/[^=]+/i', $Response[1], $Matches)) {
    6060          if ($Matches[0][0] == 'ret' && strlen($Matches[0][1]) == 32) {
Note: See TracChangeset for help on using the changeset viewer.