diff --git a/classes/Exporter.php b/classes/Exporter.php index 89084dcd72524a74f3fdc3427c84ce0bda060f10..97b9eaf26dcf5b467387942da27054086798d4ae 100644 --- a/classes/Exporter.php +++ b/classes/Exporter.php @@ -39,7 +39,7 @@ class Exporter array_push($triples, $t); $t['o'] = LS . 'Application'; array_push($triples, $t); - if ($conf['parentApp'] != null) { + if (isset($conf['parentApp']) && $conf['parentApp'] !== null) { $t['p'] = OPMV . 'wasDerivedFrom'; $t['o'] = $conf['parentApp']; array_push($triples, $t); diff --git a/index.php b/index.php index 7fafc57aecf48f0c2d52c82d938a2ab959d6a81c..bf2a12d18312718eef917855fd0e788b4f05ccd2 100644 --- a/index.php +++ b/index.php @@ -47,7 +47,6 @@ if ($acceptContentType === null) { } if ($conf['export'] && $_GET['q'] === 'export') { - include_once('settings.inc.php'); $exp = new Exporter(); header('Content-Type: text/plain'); $exp->run();