Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
"Comparing a non-numeric string to the integer 0 by using == will return true, since the string will be casted to integer - which will be zero. If your string starts with a number, it will be castet to an integer with the number as value." -somebody on php.net
Had a tricky problem with the atom_views module because it sets build_mode to 'atom' so pagination was acting on it.
Comment | File | Size | Author |
---|---|---|---|
#1 | build_mode_comparison.patch | 900 bytes | slip |
build_mode_comparison.patch | 1.49 KB | slip |
Comments
Comment #1
slip CreditAttribution: slip commentedAhh... the second part of the patch:
$object->build_mode !== NODE_BUILD_PRINT
Isn't necessary.
Reroll
Comment #2
mundanity CreditAttribution: mundanity commentedHI there,
Good find, will patch this weekend likely.
Comment #3
mundanity CreditAttribution: mundanity commentedUpdated in dev.