Skip to content

Possible bug / edge case #136

@ImAlbi57

Description

@ImAlbi57

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

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions