Author: sevein
Date: Mon Jun  6 11:09:03 2011
New Revision: 9135

Log:
Avoid fatal error if the actor object does not exit.

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

Modified: trunk/lib/search/QubitSearch.class.php
==============================================================================
--- trunk/lib/search/QubitSearch.class.php      Mon Jun  6 10:43:39 2011        
(r9134)
+++ trunk/lib/search/QubitSearch.class.php      Mon Jun  6 11:09:03 2011        
(r9135)
@@ -439,7 +439,11 @@
       $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->__toString();
+
+      if (isset($date->actor))
+      {
+        $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