× Joomdle 1.0 Installation

Warning: "continue" targeting switch is equivalent to "break".

5 months 3 weeks ago
Patrick Gay
Posts: 2
More
Topic Author
Warning: "continue" targeting switch is equivalent to "break" #1
I installed Joomdle Auth in Moodle and now I get the following message at the top of every page I browse to in Moodle

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/html/moodle/auth/joomdle/auth.php on line 2703

Here are my versions:
Joomla: 3.9.21
Joomdle: 1.2.7
Moodle: 3.9.1
PHP: 7.4.10
Apache: 2.4.6
Mariadb: 10.5.5

Please Log in or Create an account to join the conversation.

5 months 3 weeks ago
Antonio Durán
Posts: 7255
More
Warning: "continue" targeting switch is equivalent to "break" #2
Hi Patrick,

Thanks for the bug report. We'll take a look at it and get back to you as soon as possible.

Please Log in or Create an account to join the conversation.

5 months 3 weeks ago 5 months 3 weeks ago by Antonio Durán.
Antonio Durán
Posts: 7255
More
Warning: "continue" targeting switch is equivalent to "break" #3
I checked this and made a fix for next release.
If you want to make the change, it is easy.
Edit file: moodle/auth/joomdle/auth.php
In get_course_students function change:
if (!$user)
    continue;
By:
                    if (!$user) {
                        $include = false;
                        break;
                    }

Please Log in or Create an account to join the conversation.