Changeset 915 for trunk/Modules/NetworkConfigRouterOS/Routerboard.php
- Timestamp:
- Dec 7, 2021, 9:56:09 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkConfigRouterOS/Routerboard.php
r888 r915 44 44 } 45 45 46 function ExecuteBatch(string $Commands): string46 function ExecuteBatch(string $Commands): array 47 47 { 48 48 $Commands = trim($Commands); … … 60 60 $Output = array(); 61 61 exec($Command, $Output); 62 } else $Output = '';62 } else $Output = array(); 63 63 if ($this->Debug) print_r($Output); 64 64 return $Output; … … 140 140 if (count($Value) > 1) 141 141 { 142 if ($Value[1] {0}== '"') $Value[1] = substr($Value[1], 1, -1);142 if ($Value[1][0] == '"') $Value[1] = substr($Value[1], 1, -1); 143 143 //if (strlen($Value[1]) > 0) 144 144 $ListItem[$Value[0]] = $Value[1];
Note:
See TracChangeset
for help on using the changeset viewer.