]> git.mxchange.org Git - friendica.git/commitdiff
Avoid notice
authorMichael <heluecht@pirati.ca>
Tue, 2 Oct 2018 08:31:58 +0000 (08:31 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 2 Oct 2018 08:31:58 +0000 (08:31 +0000)
src/Util/JsonLD.php

index 2b6fac4ad483a029ca107b1c3539658dbe55bf06..ddf8d93533ea121508dae2bfdace65f854c4edf5 100644 (file)
@@ -64,6 +64,7 @@ class JsonLD
                        $normalized = jsonld_normalize($jsonobj, array('algorithm' => 'URDNA2015', 'format' => 'application/nquads'));
                }
                catch (Exception $e) {
+                       $normalized = false;
                        logger('normalise error:' . print_r($e, true), LOGGER_DEBUG);
                }