Changeset 9251

Show
Ignore:
Timestamp:
08/13/08 23:14:55 (4 months ago)
Author:
afz
Message:

check component before check component's key

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/jaws/html/include/Jaws/Registry.php

    r9248 r9251  
    118118    function KeyExists($name, $comp = 'Jaws') 
    119119    { 
    120         return array_key_exists($name, $this->_Registry[$comp]); 
     120        return array_key_exists($comp, $this->_Registry) && 
     121               array_key_exists($name, $this->_Registry[$comp]); 
    121122    } 
    122123