![Announcement icon Announcement icon](https://www.drupal.org/files/styles/grid-2-2x-square/public/announcements/drupal-evergreen-logo-280X280px%20%281%29_0.jpg?itok=PHpn6rCb)
Missing Comparison Operator in IF statement
file: date_ical.module
line 103
if ($image = theme('image', $variables)) {
return "<a href='{$variables['url']}' class='ical-icon'>$image</a>";
}
else {
return "<a href='{$variables['url']}' class='ical-icon'>{$variables['tooltip']}</a>";
}
Comment | File | Size | Author |
---|---|---|---|
#1 | date_ical-2340595-1.patch | 933 bytes | mqanneh |
![Acquia logo](/files/ads/acquia-issue-sponsorship.png)
Comments
Comment #1
mqannehComment #2
coredumperror CreditAttribution: coredumperror commentedThat single equal-sign is actually intentional. It's both assigning the return value of
theme('image', $variables)
into$image
and checking if$image
is truthy at the same time.