Author: david
Date: Mon Jun 27 10:12:16 2011
New Revision: 9185
Log:
Test for lft/rgt column to avoid PHP Notice
Modified:
trunk/lib/task/migrate/QubitMigrate.class.php
Modified: trunk/lib/task/migrate/QubitMigrate.class.php
==============================================================================
--- trunk/lib/task/migrate/QubitMigrate.class.php Mon Jun 27 10:10:02
2011 (r9184)
+++ trunk/lib/task/migrate/QubitMigrate.class.php Mon Jun 27 10:12:16
2011 (r9185)
@@ -247,12 +247,12 @@
// Bump existing lft & rgt values
foreach ($originalData as &$row)
{
- if ($pivotLft <= $row['lft'])
+ if (isset($row['lft']) && $pivotLft <= $row['lft'])
{
$row['lft'] += $width;
}
- if ($pivotLft < $row['rgt'])
+ if (isset($row['rgt']) && $pivotLft < $row['rgt'])
{
$row['rgt'] += $width;
}
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" 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.com/group/qubit-commits?hl=en.