Changeset 324

Show
Ignore:
Timestamp:
12/20/07 15:36:21 (7 months ago)
Author:
hans
Message:

Changing Properties->setProperty() to not use error suppression.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.3/classes/phing/system/util/Properties.php

    r229 r324  
    215215     */ 
    216216    function setProperty($key, $value) { 
    217         $oldValue = @$this->properties[$key];        
     217        $oldValue = null; 
     218        if (isset($this->properties[$key])) { 
     219                $oldValue = $this->properties[$key]; 
     220        } 
    218221        $this->properties[$key] = $value; 
    219222        return $oldValue;