Changeset 3561

Show
Ignore:
Timestamp:
01/21/08 23:02:00 (18 months ago)
Author:
jwage
Message:

Fix for situation where subclasses is not an array.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.9/lib/Doctrine/Node.php

    r2963 r3561  
    7777        if ($table->getOption('inheritanceMap')) { 
    7878            $subclasses = $table->getOption('subclasses'); 
    79             while (in_array($class, $subclasses)) { 
     79            while (in_array($class, (array) $subclasses)) { 
    8080                $class = get_parent_class($class); 
    8181            }