chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From richa...@apache.org
Subject svn commit: r1062185 - /incubator/chemistry/phpclient/trunk/cmis_repository_wrapper.php
Date Sat, 22 Jan 2011 16:03:32 GMT
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;



Mime
View raw message