Author: david
Date: Wed Jun  1 14:44:21 2011
New Revision: 9132

Log:
Use __toString() to avoid Fatal error trying to serialize PDO object

Modified:
   trunk/lib/search/QubitSearch.class.php

Modified: trunk/lib/search/QubitSearch.class.php
==============================================================================
--- trunk/lib/search/QubitSearch.class.php      Wed Jun  1 00:03:06 2011        
(r9131)
+++ trunk/lib/search/QubitSearch.class.php      Wed Jun  1 14:44:21 2011        
(r9132)
@@ -431,7 +431,7 @@
         $save_date['id'] = $date->id;
         $save_date['rendered'] = 
Qubit::renderDateStartEnd($date->getDate(array('cultureFallback' => true)), 
$date->startDate, $date->endDate);
         $save_date['type'] = $date->getType(array('cultureFallback' => 
true))->__toString();
-        $save_date['actor'] = $date->actor; // NB: may cause issues as object
+        $save_date['actor'] = $date->actor->__toString();
     
         $dates[] = $save_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