Author: jablko
Date: Wed Sep  2 18:01:04 2009
New Revision: 3155

Log:
Work around PHP bug with explicit call to __toString(), 
http://bugs.php.net/bug.php?id=47522

Modified:
   
trunk/apps/qubit/modules/informationobject/templates/editPhysicalObjectsSuccess.php

Modified: 
trunk/apps/qubit/modules/informationobject/templates/editPhysicalObjectsSuccess.php
==============================================================================
--- 
trunk/apps/qubit/modules/informationobject/templates/editPhysicalObjectsSuccess.php
 Wed Sep  2 17:49:48 2009        (r3154)
+++ 
trunk/apps/qubit/modules/informationobject/templates/editPhysicalObjectsSuccess.php
 Wed Sep  2 18:01:04 2009        (r3155)
@@ -14,7 +14,7 @@
   <?php $physicalObject = 
QubitPhysicalObject::getById($relation->getSubjectId()) ?>
   <tr class="<?php echo 'related_obj_'.$relation->getId() ?>">
     <td style="width: 90%"><div class="animateNicely">
-      <?php if (strlen($type = $physicalObject->getType())) echo $type.': ' ?>
+      <?php if (strlen($type = $physicalObject->getType()->__toString())) echo 
$type.': ' ?>
       <b><?php echo $physicalObject->getName(array('cultureFallback' => 
'true')) ?></b>
       <?php if ($location = 
$physicalObject->getLocation(array('cultureFallback' => 'true'))) echo ' - 
'.$location ?>     
     </div></td>

--~--~---------~--~----~------------~-------~--~----~
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.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to