summaryrefslogtreecommitdiffstats
path: root/5eb5154fec8b3d3df666628ba2f3636c0fa385c3.patch
blob: 7c5e58c074cb3b8b84e64821a8544a9dab9e079f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Adapted for 0.9.0 from


From 5eb5154fec8b3d3df666628ba2f3636c0fa385c3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thiemo=20M=C3=A4ttig?= <thiemo.maettig@wikimedia.de>
Date: Fri, 19 Dec 2014 12:45:34 +0100
Subject: [PATCH] Fix potential bugs and incomplete docs

---
 lib/Isomorphic.php        | 2 +-
 lib/Parser/RdfPhp.php     | 2 +-
 lib/Serialiser/Turtle.php | 2 +-
 lib/Sparql/Client.php     | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/Isomorphic.php b/lib/Isomorphic.php
index ed3c5a30..ca3c59dd 100644
--- a/lib/EasyRdf/Isomorphic.php
+++ b/lib/EasyRdf/Isomorphic.php
@@ -96,7 +96,7 @@ public static function bijectionBetween($graphA, $graphB)
         if ($groundedStatementsMatch === false) {
             // The grounded statements do not match
             return null;
-        } elseif (count($bnodesA) > 0 or count($bnodesB > 0)) {
+        } elseif (count($bnodesA) > 0 or count($bnodesB) > 0) {
             // There are blank nodes - build a bi-jection
             return self::buildBijectionTo($statementsA, $bnodesA, $statementsB, $bnodesB);
         } else {