Skip to content

Commit

Permalink
fixed that creating member profile will cause segfault (fixes #343)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kousuke Ebihara committed Dec 10, 2009
1 parent 53d1776 commit e9c0704
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/api/opAPICommunityMember.class.php
Expand Up @@ -84,7 +84,7 @@ public function createEntryByInstance(Doctrine_Record $communityMember, SimpleXM

foreach ($member->getProfiles() as $profile)
{
$child = $profiles->addChild('div', $profile);
$child = $profiles->addChild('div', (string)$profile);
$child->addAttribute('id', $profile->getName());
}

Expand Down
4 changes: 2 additions & 2 deletions lib/api/opGDataDocument.class.php
Expand Up @@ -61,11 +61,11 @@ public function addValidStringToNode($node, $string)

if (Doctrine::getTable('SnsConfig')->get('op_web_api_plugin_using_cdata', false))
{
$child = $doc->createCDataSection($string);
$child = $doc->createCDataSection((string)$string);
}
else
{
$child = $doc->createTextNode($string);
$child = $doc->createTextNode((string)$string);
}

$domNode->appendChild($child);
Expand Down

0 comments on commit e9c0704

Please sign in to comment.