uParameters[1]; try { $sNode = new Node($uUuid); $sProperties = array(); foreach(Property::CreateFromQuery("SELECT * FROM properties WHERE `NodeId` = :NodeId", array( "NodeId" => $sNode->sId )) as $sProperty) { $sProperties[] = array( "name" => $sProperty->sName, "value" => $sProperty->sValue, "source" => $sProperty->sSource, "reliability" => $sProperty->sReliability ); } $sData = array( "contents" => NewTemplater::Render("nodes/lookup", $locale->strings, array( "id" => $sNode->sId, "name" => $sNode->sName, "notes" => $sNode->sNotes, "properties" => $sProperties )) ); } catch (NotFoundException $e) { $sUuid = htmlspecialchars($uUuid); $sData = array( "contents" => "Could not find a node with ID {$sUuid}." ); }