Author: david
Date: Mon Jun 27 13:57:05 2011
New Revision: 9193
Log:
Test for `id` key to avoid PHP Notice. Use conventional $item in foreach
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 13:54:47
2011 (r9192)
+++ trunk/lib/task/migrate/QubitMigrate107.class.php Mon Jun 27 13:57:05
2011 (r9193)
@@ -1128,11 +1128,11 @@
$qubitTermArray = $this->data['QubitTerm'];
foreach ($qubitTermConstantIds as $key => $constantName)
{
- foreach ($qubitTermArray as $key => $term)
+ foreach ($qubitTermArray as $key => $item)
{
- if ($term['id'] == '<?php echo QubitTerm::'.$constantName.'."\n" ?>')
+ if (isset($item['id']) && $item['id'] == '<?php echo
QubitTerm::'.$constantName.'."\n" ?>')
{
- $newTermArray[$key] = $term;
+ $newTermArray[$key] = $item;
unset($qubitTermArray[$key]);
break;
}
--
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.