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

Booking page shows errors #377

Closed
madde1 opened this issue Feb 17, 2021 · 2 comments · Fixed by #378
Closed

Booking page shows errors #377

madde1 opened this issue Feb 17, 2021 · 2 comments · Fixed by #378
Labels

Comments

@madde1
Copy link

madde1 commented Feb 17, 2021

When you go to the booking page with out booking a course it shows, it was not like that before update :
Warning: count(): Parameter must be an array or an object that implements Countable in /home/seodokto/eduperformance.seo-doktorn.se/wp-content/plugins/eduadmin-booking/content/template/bookingTemplate/course-info.php on line 26
Warning
: count(): Parameter must be an array or an object that implements Countable in
/home/seodokto/eduperformance.seo-doktorn.se/wp-content/plugins/eduadmin-booking/content/template/bookingTemplate/event-selector.php
on line
24

Warning
: count(): Parameter must be an array or an object that implements Countable in
/home/seodokto/eduperformance.seo-doktorn.se/wp-content/plugins/eduadmin-booking/content/template/bookingTemplate/event-selector.php
on line

@itssimple itssimple added the bug label Feb 17, 2021
@itssimple
Copy link
Member

Seems like the data returned from the EduAdmin API doesn't contain any events.

itssimple added a commit that referenced this issue Feb 17, 2021
…ct if there are any available events or not. fixes #377
@itssimple itssimple mentioned this issue Feb 17, 2021
@madde1
Copy link
Author

madde1 commented Feb 17, 2021

Fixed it with empty() function instead of count..

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

Successfully merging a pull request may close this issue.

2 participants