Author: david
Date: Wed Mar  2 13:37:00 2011
New Revision: 9018

Log:
Fix bug with more than two digital objects per info object

Modified:
   trunk/lib/task/digitalObjectLoadTask.class.php

Modified: trunk/lib/task/digitalObjectLoadTask.class.php
==============================================================================
--- trunk/lib/task/digitalObjectLoadTask.class.php      Wed Mar  2 10:09:22 
2011        (r9017)
+++ trunk/lib/task/digitalObjectLoadTask.class.php      Wed Mar  2 13:37:00 
2011        (r9018)
@@ -90,10 +90,14 @@
       {
         $digitalObjects[$item[$idKey]] = $item[$fileKey];
       }
-      else
+      else if (!is_array($digitalObjects[$item[$idKey]]))
       {
         $digitalObjects[$item[$idKey]] = array($digitalObjects[$item[$idKey]], 
$item[$fileKey]);
       }
+      else
+      {
+        $digitalObjects[$item[$idKey]][] = $item[$fileKey];
+      }
     }
 
     // Loop through $digitalObject hash and add digital objects to db

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