[drupal-devel] [bug] phptemplate.engine: is_int/is_numeric confusion

wiz drupal-devel at drupal.org
Fri Jul 29 16:59:51 UTC 2005

Issue status update for 
Post a follow up: 

 Project:      Drupal
 Version:      cvs
 Component:    theme system
 Category:     bug reports
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  wiz
 Updated by:   wiz
 Status:       patch
 Attachment:   http://drupal.org/files/issues/phptemplate_node.patch (720 bytes)

I've wondered why $node is not defined anymore in my theme's
The reason is a modified expression in phptemplate.engine, which now

if ((arg(0) == 'node') && is_int(arg(1))) {

arg(1) may be the node number, but it is a string variable, and
therefore this check is always false.
is_int should be replaced with the code given in the patch.


More information about the drupal-devel mailing list