#1536: NestedSet hasSibling failed if parent is false ...
-----------------------------------+----------------------------------------
Reporter: rande | Owner: romanb
Type: defect | Status: new
Priority: critical | Milestone:
Component: NestedSet | Version: 1.0.2
Keywords: | Has_test: 0
Mystatus: Pending Core Response | Has_patch: 0
-----------------------------------+----------------------------------------
{{{
Index: plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Node/NestedSet.php
===================================================================
--- plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Node/NestedSet.php
(revision 5048)
+++ plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Node/NestedSet.php
(working copy)
@@ -134,7 +134,7 @@
{
$parent = $this->getParent();
$siblings = array();
- if ($parent->exists()) {
+ if ($parent && $parent->exists()) {
foreach ($parent->getNode()->getChildren() as $child) {
if ($this->isEqualTo($child) && !$includeNode) {
continue;
}}}
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1536>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---