You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by ri...@apache.org on 2011/01/22 17:03:32 UTC
svn commit: r1062185 -
/incubator/chemistry/phpclient/trunk/cmis_repository_wrapper.php
Author: richardm
Date: Sat Jan 22 16:03:32 2011
New Revision: 1062185
URL: http://svn.apache.org/viewvc?rev=1062185&view=rev
Log:
CMIS-290
extractObjectFromNode() returns object with null-keyed properties array
Patch provided by Stefan Topfstedt
Modified:
incubator/chemistry/phpclient/trunk/cmis_repository_wrapper.php
Modified: incubator/chemistry/phpclient/trunk/cmis_repository_wrapper.php
URL: http://svn.apache.org/viewvc/incubator/chemistry/phpclient/trunk/cmis_repository_wrapper.php?rev=1062185&r1=1062184&r2=1062185&view=diff
==============================================================================
--- incubator/chemistry/phpclient/trunk/cmis_repository_wrapper.php (original)
+++ incubator/chemistry/phpclient/trunk/cmis_repository_wrapper.php Sat Jan 22 16:03:32 2011
@@ -382,7 +382,11 @@ class CMISRepositoryWrapper
{
if ($pn->attributes)
{
- $retval->properties[$pn->attributes->getNamedItem("propertyDefinitionId")->nodeValue] = $pn->getElementsByTagName("value")->item(0)->nodeValue;
+ $propDefId = $pn->attributes->getNamedItem("propertyDefinitionId");
+ if (!is_null($propDefId))
+ {
+ $retval->properties[$propDefId->nodeValue] = $pn->getElementsByTagName("value")->item(0)->nodeValue;
+ }
}
}
$retval->uuid = $xmlnode->getElementsByTagName("id")->item(0)->nodeValue;