-
-
Notifications
You must be signed in to change notification settings - Fork 171
Open
Labels
questionFurther information is requestedFurther information is requested
Description
Setup
Laravel + RouterOS 7.19.3
Problem
Code snippet
$query = new Query('/system/script/run');
$query->equal('.id', $name);
return $this->client->query($query)->read();
if the script that I try to run, calls for other script to run, i get the following error
Undefined array key 0 at Line 377 of Client.php
(LINE 377: $result[] = $this->parseResponse($item)[0];)
With any other script I have this problem isn't showing at the moment
My current fix/workaround
I don't know if this is the correct way to handle this case but replacing line 377 with the following fixed my problem
if(null != $this->parseResponse($item)) $result[] = $this->parseResponse($item)[0];
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested