"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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

slip’s picture

FileSize
900 bytes

Ahh... the second part of the patch:

$object->build_mode !== NODE_BUILD_PRINT

Isn't necessary.

Reroll

mundanity’s picture

HI there,

Good find, will patch this weekend likely.

mundanity’s picture

Status: Active » Fixed

Updated in dev.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.