When someone installs the plugin and there's no data on the db it throws two notices of undefined index '0' & '1' for tags and groups. Moreover, as tags and groups get assigned as non-array on appVars we can't create tags and groups from the CreateSnippet module. I found a fix for this.
On the AdminMenuHandler we can assign tags and groups as empty arrays if there's no data available. AdminMenuHandler line number 43.
[$tags, $groups] = (new Snippet())->getAllSnippetTagsGroups() ?: [[], []];
When someone installs the plugin and there's no data on the db it throws two notices of undefined index '0' & '1' for tags and groups. Moreover, as tags and groups get assigned as non-array on appVars we can't create tags and groups from the CreateSnippet module. I found a fix for this.
On the AdminMenuHandler we can assign tags and groups as empty arrays if there's no data available. AdminMenuHandler line number 43.
[$tags, $groups] = (new Snippet())->getAllSnippetTagsGroups() ?: [[], []];