Ignore:
Timestamp:
Dec 7, 2021, 9:56:09 PM (2 years ago)
Author:
chronos
Message:
  • Fixed: Various PHP 8.0 related fixes.
File:
1 edited

Legend:

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

    r888 r915  
    4444  }
    4545
    46   function ExecuteBatch(string $Commands): string
     46  function ExecuteBatch(string $Commands): array
    4747  {
    4848    $Commands = trim($Commands);
     
    6060      $Output = array();
    6161      exec($Command, $Output);
    62     } else $Output = '';
     62    } else $Output = array();
    6363    if ($this->Debug) print_r($Output);
    6464    return $Output;
     
    140140          if (count($Value) > 1)
    141141          {
    142             if ($Value[1]{0} == '"') $Value[1] = substr($Value[1], 1, -1);
     142            if ($Value[1][0] == '"') $Value[1] = substr($Value[1], 1, -1);
    143143            //if (strlen($Value[1]) > 0)
    144144            $ListItem[$Value[0]] = $Value[1];
Note: See TracChangeset for help on using the changeset viewer.