Closed (works as designed)
Project:
htmLawed
Version:
7.x-3.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
7 Oct 2020 at 13:12 UTC
Updated:
9 Oct 2020 at 22:19 UTC
Jump to comment: Most recent
me@vps:/var/www/sites/all# drush en htmLawed
The following extensions will be enabled: htmLawed
Do you really want to continue? (y/n): y
PHP Fatal error: 'break' not in the 'loop' or 'switch' context in /var/www/sites/all/modules/htmLawed/htmLawed.module on line 72
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: 'break' not in the 'loop' or 'switch' context in /var/www/sites/all/modules/htmLawed/htmLawed.module, line 72
Comments
Comment #2
ram4nd commentedComment #3
alpha2zee commentedI do not see this issue. It might be similar to https://www.drupal.org/project/htmlawed/issues/3168857.
Comment #4
ram4nd commentedThis still is an issue, what does the break; in if condition suppose to do? If it it suppose to end the function then return; is right. If it's suppose to be a blank if statement, then the question is why an if statement?
Comment #5
alpha2zee commentedIn module version 7.x-3.8, there is only one use of 'break' -- in the htmlawed.module file (function htmLawed_help) and within switch/case. May be you are looking at an older version of the module code.
Comment #6
alpha2zee commented