The snippets editor is changing one of my operators, causing the code to fail. I have the following line in my code:
The editor changes the "<=" operator by adding a space so it reads like this:
This causes an error and the code won't run. I can get the code to successfully execute by changing the comparison to just "<".
I tried toggling the HTML Entities preference, but it made no difference. Every time I correct the code, then save, the editor inserts the space.
Any suggestions?
Code:
if (($initials == "ABC") && (date('y-m-d', $today) <= $datecompare)) {
Code:
if (($initials == "ABC") && (date('y-m-d', $today) < = $datecompare)) {
I tried toggling the HTML Entities preference, but it made no difference. Every time I correct the code, then save, the editor inserts the space.
Any suggestions?