Error thrown by invalid Folder ID

Created on 6 September 2023, about 1 year ago
Updated 13 September 2023, about 1 year ago

Problem/Motivation

When a folder id in an a OneHub field is not accessible for some reason, it throws an error:

OneHubApi::callApi returns null or array

$folders = $this->callApi($path);
$this->getItems($folders);

But the function call for getItems is getItems(array $call) so this throws an error.

Proposed resolution

Check the value is an array first before calling.

Remaining tasks

πŸ› Bug report
Status

Fixed

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom ChrisDarke London

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024