From c832ca4adee8cbabcfdcfa8ef2da78dab56e0489 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 11 Mar 2016 02:49:41 +0100 Subject: [PATCH] DbObject: reallySet should not risk magic lookups --- library/Director/Data/Db/DbObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/Data/Db/DbObject.php b/library/Director/Data/Db/DbObject.php index f940e108..0b2d4337 100644 --- a/library/Director/Data/Db/DbObject.php +++ b/library/Director/Data/Db/DbObject.php @@ -315,7 +315,7 @@ abstract class DbObject protected function reallySet($key, $value) { - if ($value === $this->$key) { + if ($value === $this->properties[$key]) { return $this; } $this->hasBeenModified = true;