Changeset 5949


Ignore:
Timestamp:
01/18/12 19:55:01 (4 months ago)
Author:
vain
Message:
  • added check, if DEBUG is defined
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/viewhelper/form/formelement.php

    r5948 r5949  
    421421                 * If the setter method exists most likely the property will exist too, i guess. 
    422422                 */ 
    423                 if(DEBUG == true) 
     423                if( defined('DEBUG') and DEBUG == true ) 
    424424                { 
    425425                    $method = 'set' . $attribute; 
    426                     $this->{$method}($value); 
     426                    $this->$method($value); 
    427427                } 
    428428                else # while in production mode 
Note: See TracChangeset for help on using the changeset viewer.