User tests: Successful: Unsuccessful:
all the changes here are to fix code where the intent was to do a comparison butby using a single = the code actually does a variable assignment
Testing by code review I assume @wilsonge ?
This problem exists in many places but I guess it is easier to code review if they are discreet pull requests
| Status | New | ⇒ | Pending |
| Category | ⇒ | Administration com_templates |
| Status | Pending | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-01-26 17:13:47 |
| Closed_By | ⇒ | wilsonge | |
| Labels |
Added:
?
|
||
I wasn't sure which is why I asked. No problems
This code is correct. It assigns a value to a variable and evaluates it as boolean.
if ($a = foo()) {}is equivalent to: