Changeset 29

Show
Ignore:
Timestamp:
08/30/06 16:34:55 (2 years ago)
Author:
mikey
Message:

fixed problem with comparison of 0 and null

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/XJConf/converters/AbstractObjectValueConverter.php

    r26 r29  
    4040            // attribute has not been set and there is no 
    4141            // default value, skip the method call 
    42             if (null == $val) { 
     42            if (null === $val) { 
    4343                continue; 
    4444            } 
  • trunk/XJConf/definitions/AttributeDefinition.php

    r21 r29  
    128128        } 
    129129 
    130         if (null == $value) { 
     130        if (null === $value) { 
    131131            if ($this->isRequired() == true) { 
    132132                throw new MissingAttributeException('The attribute "' . $this->getName() . '" is required for the tag "' . $tag->getName() . '".');