Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type_group may not be a string but an array #75

Open
horde3d opened this issue Jun 1, 2023 · 0 comments
Open

type_group may not be a string but an array #75

horde3d opened this issue Jun 1, 2023 · 0 comments

Comments

@horde3d
Copy link

horde3d commented Jun 1, 2023

In my installation I stumbled over an issue, were type_group was an array which result in strpos throwing an error because it expects a string.

<?php if ( $type == 'CSV row' || strpos($type_group, 'Knowledge graph') === 0 || strpos($type, 'Knowledge graph') === 0 ) {

Without further investigations I fixed it by adding a check for is_string

<?php if ( $type == 'CSV row' || (is_string($type_group) && strpos($type_group, 'Knowledge graph') === 0) || strpos($type, 'Knowledge graph') === 0 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant