Author: david
Date: Fri Jun 24 17:05:37 2011
New Revision: 9178

Log:
Test for parent_id 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       Fri Jun 24 17:00:48 
2011        (r9177)
+++ trunk/lib/task/migrate/QubitMigrate.class.php       Fri Jun 24 17:05:37 
2011        (r9178)
@@ -338,9 +338,12 @@
 
     foreach ($objectList as $key => $row)
     {
-      if ($deleteObjectKey == $row['parent_id'] || (null !== $deleteObjectId 
&& $deleteObjectId == $row['parent_id']))
+      if (isset($row['parent_id']))
       {
-        $objectList = self::cascadeDelete($objectList, $key);
+        if ($deleteObjectKey == $row['parent_id'] || (null !== $deleteObjectId 
&& $deleteObjectId == $row['parent_id']))
+        {
+          $objectList = self::cascadeDelete($objectList, $key);
+        }
       }
     }
 

-- 
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.

Reply via email to