Author: sevein
Date: Wed May 18 14:44:50 2011
New Revision: 9110
Log:
Call toString magic method explicitly to avoid PHP segfaults in some systems.
Modified:
trunk/apps/qubit/modules/physicalobject/actions/editAction.class.php
Modified: trunk/apps/qubit/modules/physicalobject/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/physicalobject/actions/editAction.class.php
Wed May 18 00:02:54 2011 (r9109)
+++ trunk/apps/qubit/modules/physicalobject/actions/editAction.class.php
Wed May 18 14:44:50 2011 (r9110)
@@ -44,7 +44,7 @@
$title = $this->context->i18n->__('Add new physical storage');
if (isset($this->getRoute()->resource))
{
- if (1 > strlen($title = $this->resource))
+ if (1 > strlen($title = $this->resource->__toString()))
{
$title = $this->context->i18n->__('Untitled');
}
--
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.