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

Undefined offset: 0 #52

Closed
diego-betto opened this issue Feb 24, 2023 · 0 comments · Fixed by Diego-Betto-Classrooms/intuitive-custom-post-order#1
Closed

Undefined offset: 0 #52

diego-betto opened this issue Feb 24, 2023 · 0 comments · Fixed by Diego-Betto-Classrooms/intuitive-custom-post-order#1

Comments

@diego-betto
Copy link

There are errors in logs now.

Undefined offset: 0 {"userId": xxxxx,"exception":"[object] (ErrorException(code: 0): Undefined offset: 0 at /wp-content/plugins/intuitive-custom-post-order/intuitive-custom-post-order.php:291)

Workaround, changed rows 269 and 291 with

if ( !isset($result[0]) || $result[0]->cnt == 0 || $result[0]->cnt == $result[0]->max ) continue;

i.e. added this, hope it helps

!isset($result[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

Successfully merging a pull request may close this issue.

1 participant