PHP Classes

Optimize Error

Recommend this page to a friend!

      Nested Nodes Class  >  All threads  >  Optimize Error  >  (Un) Subscribe thread alerts  
Subject:Optimize Error
Summary:I keep getting errors evrey time I add / edit / order root node
Messages:2
Author:moshe
Date:2008-10-21 17:55:46
Update:2010-01-09 23:27:01
 

  1. Optimize Error   Reply   Report abuse  
Picture of moshe moshe - 2008-10-21 17:55:46
Hi
I keep get errors evrey time I add / edit / order a root node
If it is a nest node it is all looks fine
but when it is a node in the root level.
I keep geeting this errors on the function _optimize_orders
that the parentPosition variable is undefined,
than It is maiking the process.

Any Idea
Best Regards.
Thank you All

  2. Re: Optimize Error   Reply   Report abuse  
Picture of Fatih Ibrahimi Fatih Ibrahimi - 2010-01-09 23:27:01 - In reply to message 1 from moshe
if(count($PositionS) > 0) {
$parentPosition = implode(">", $PositionS).">";
}

Root nodes are not > 0, so the $parentPosition is not defined!

I don't know if it's solved, but i added this:

else {
$parentPosition = "";
}

At least the error is gone...