From 8da8666dbbe08264dac5dceb718dc0c78a3d5e2b Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Thu, 4 May 2017 07:00:58 +0000 Subject: [PATCH] dblayeroo: allow to join with extends of dblayeroo git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3571 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- dblayeroo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dblayeroo.php b/dblayeroo.php index efca24e..c0055b3 100644 --- a/dblayeroo.php +++ b/dblayeroo.php @@ -1564,7 +1564,7 @@ class dblayeroo $this->DBException ("Invalid joinType provided to join (not known)"); if (! is_object ($object)) $this->DBException ("Invalid object provided to join (not object)"); - if (get_class ($object) !== __CLASS__) + if (! is_subclass_of ($object, __CLASS__)) $this->DBException ( "Invalid object provided to join (not dblayeroo object)"); if ($this->dsn !== $object->dsn)