Author: sevein
Date: Thu Oct 28 15:55:39 2010
New Revision: 8639

Log:
$value['date'] is an array.

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

Modified: trunk/lib/task/migrate/QubitMigrate109.class.php
==============================================================================
--- trunk/lib/task/migrate/QubitMigrate109.class.php    Thu Oct 28 15:48:19 
2010        (r8638)
+++ trunk/lib/task/migrate/QubitMigrate109.class.php    Thu Oct 28 15:55:39 
2010        (r8639)
@@ -172,9 +172,20 @@
 
         foreach ($this->data['QubitEvent'] as $key => $value)
         {
-          if (0 < strlen(@$value['date']))
+          if (isset($value['date']))
           {
-            unset($this->data['QubitEvent'][$key]['date']);
+            foreach ($value['date'] as $culture => $date)
+            {
+              if (0 == strlen($date))
+              {
+                unset($this->data['QubitEvent'][$key]['date'][$culture]);
+              }
+            }
+
+            if (0 == count($this->data['QubitEvent'][$key]['date']))
+            {
+              unset($this->data['QubitEvent'][$key]['date']);
+            }
           }
 
           if ('0000-00-00' == @$value['end_date'])

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