Skip to content
Snippets Groups Projects
Commit ef3136c8 authored by Daniel Berthereau's avatar Daniel Berthereau
Browse files

Cleaned code.

parent 5b23b580
Branches
Tags
No related merge requests found
...@@ -256,7 +256,7 @@ abstract class AbstractOaiSet extends AbstractXmlGenerator implements OaiSetInte ...@@ -256,7 +256,7 @@ abstract class AbstractOaiSet extends AbstractXmlGenerator implements OaiSetInte
return; return;
} }
$set = null; $set = null;
if ((integer) $setSpec) { if ((int) $setSpec) {
try { try {
$set = $this->api->read('item_sets', ['id' => $setSpec])->getContent(); $set = $this->api->read('item_sets', ['id' => $setSpec])->getContent();
} catch (\Omeka\Api\Exception\NotFoundException $e) { } catch (\Omeka\Api\Exception\NotFoundException $e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment