Author: david
Date: Mon Jun 27 13:50:48 2011
New Revision: 9191
Log:
Test for `id` to Avoid PHP Notice. Reverse boolean expression to improve
legibility.
Modified:
trunk/lib/task/migrate/QubitMigrate107.class.php
Modified: trunk/lib/task/migrate/QubitMigrate107.class.php
==============================================================================
--- trunk/lib/task/migrate/QubitMigrate107.class.php Mon Jun 27 12:05:31
2011 (r9190)
+++ trunk/lib/task/migrate/QubitMigrate107.class.php Mon Jun 27 13:50:48
2011 (r9191)
@@ -471,10 +471,12 @@
// Assign root term as parent for orphan terms
foreach ($this->data['QubitTerm'] as $key => $term)
{
- if (!isset($term['parent_id']) && '<?php echo QubitTerm::ROOT_ID."\n"
?>' != $term['id'])
+ if (isset($term['parent_id']) || (isset($term['id']) && '<?php echo
QubitTerm::ROOT_ID."\n" ?>' == $term['id']))
{
- $this->data['QubitTerm'][$key]['parent_id'] = 'QubitTerm_root';
+ continue;
}
+
+ $this->data['QubitTerm'][$key]['parent_id'] = 'QubitTerm_root';
}
return $this;
--
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.