Answer the question
In order to leave comments, you need to log in
How to fix infoblock login error?
When entering the information block of the catalog of offers, it redirects to the authorization page, after authorization the following error is displayed:
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/p496112/www/______.ru/bitrix/modules/iblock/admin/iblock_list_admin.php on line 1186
Answer the question
In order to leave comments, you need to log in
Since PHP 7.3, if the interpreter sees a continue without a 2 inside a switch inside a loop, it will issue Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
We understand the situation.
Documentation quote:
Note: Note that, unlike some other languages, the continue statement is used in switch statements and acts like a break statement. If you have a switch statement inside a loop and you need to move to the next iteration of the loop, use continue 2.
- php.net/manual/en/control-structures.switch.php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question