Author: david
Date: Mon Jun 27 10:40:36 2011
New Revision: 9187

Log:
Avoid PHP Notices

Modified:
   trunk/lib/task/migrate/QubitMigrate108.class.php

Modified: trunk/lib/task/migrate/QubitMigrate108.class.php
==============================================================================
--- trunk/lib/task/migrate/QubitMigrate108.class.php    Mon Jun 27 10:25:34 
2011        (r9186)
+++ trunk/lib/task/migrate/QubitMigrate108.class.php    Mon Jun 27 10:40:36 
2011        (r9187)
@@ -994,7 +994,7 @@
     // Delete existing admin permissions
     foreach ($this->data['QubitAclPermission'] as $key => $row)
     {
-      if ('read' == $row['action'])
+      if (isset($row['action']) && 'read' == $row['action'])
       {
         unset($this->data['QubitAclPermission'][$key]);
       }
@@ -1074,7 +1074,7 @@
       // Switch from linking list pages to linking create pages
       foreach ($this->data['QubitMenu'] as $key => $row)
       {
-        if ($addMenuKey == $row['parent_id'] || '<?php echo 
QubitMenu::ADD_EDIT_ID."\n" ?>' == $row['parent_id'])
+        if (isset($row['parent_id']) && ($addMenuKey == $row['parent_id'] || 
'<?php echo QubitMenu::ADD_EDIT_ID."\n" ?>' == $row['parent_id']))
         {
           $this->data['QubitMenu'][$key]['path'] = str_replace('list', 
'create', $row['path']);
         }

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