From 42041d08c755a88bcfd65a136d548a29ed0a2ed7 Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Sat, 14 Sep 2013 14:00:32 -0400 Subject: [PATCH] Fix parenthesis. --- jsonld.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jsonld.php b/jsonld.php index 0b63779..73285c2 100644 --- a/jsonld.php +++ b/jsonld.php @@ -2421,8 +2421,8 @@ class JsonLdProcessor { array('element' => $rval)); } else if(property_exists($rval, '@type') && - !self::_isAbsoluteIri($rval->{'@type'}) || - strpos($rval->{'@type'}, '_:') === 0) { + !(self::_isAbsoluteIri($rval->{'@type'}) || + strpos($rval->{'@type'}, '_:')) === 0) { throw new JsonLdException( 'Invalid JSON-LD syntax; an element containing "@value" ' . 'and "@type" must have an absolute IRI for the value ' .