Commit d8f68cb5 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Minor bug fix.

parent 7d79812c
...@@ -227,7 +227,7 @@ if (!isset($submit)) { ...@@ -227,7 +227,7 @@ if (!isset($submit)) {
$metadata = $template->LookupMetadataByGUID($metadata_guid, $metadata = $template->LookupMetadataByGUID($metadata_guid,
$metadata_vers); $metadata_vers);
if (!$template) { if (!$metadata) {
USERERROR("Invalid metadata $metadata_guid/$metadata_vers", 1); USERERROR("Invalid metadata $metadata_guid/$metadata_vers", 1);
} }
$metadata_type = $metadata->type(); $metadata_type = $metadata->type();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment