From 55de2ba21ca6e7bc15079d862b583fb0ac8fbecb Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Thu, 27 Dec 2012 22:32:58 +0100 Subject: [PATCH] Actually use the current class instead of the base class --- class.databaserecord.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class.databaserecord.php b/class.databaserecord.php index d4707ad..45e3ebe 100644 --- a/class.databaserecord.php +++ b/class.databaserecord.php @@ -619,7 +619,7 @@ abstract class CPHPDatabaseRecordClass extends CPHPBaseClass if($result) { - return new self($result); + return new static($result); } else {