diff anoclaims.php @ 1:caa68b502313 draft

Added the MARC DNS server (and small fixes in marcus and anoclaims)
author Ivo Smits <Ivo@UCIS.nl>
date Thu, 13 Nov 2014 17:22:12 +0100
parents 3ac7bd7495fd
children c642254dc9ee
line wrap: on
line diff
--- a/anoclaims.php	Sat Nov 08 22:22:42 2014 +0100
+++ b/anoclaims.php	Thu Nov 13 17:22:12 2014 +0100
@@ -21,6 +21,7 @@
 		$label = argtolabel($argv, $argi);
 		$resource = $database->GetResource($label);
 		if (!$resource) $resource = array('label' => $label, 'value' => array());
+		else $resource = $resource->ToArray();
 		if (!$database->UpdateResource($resource, $key)) throw new Exception('Could not update resource');
 		break;
 	case 'SETNS':