From 22dbeaef29a33144701658edaebac0f20f9c4768 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 4 Mar 2015 13:46:51 +0100 Subject: [PATCH] Used ->find(true) on wrong object --- lib/imagefile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/imagefile.php b/lib/imagefile.php index 97aa85c1ff..ba7e428f6d 100644 --- a/lib/imagefile.php +++ b/lib/imagefile.php @@ -63,7 +63,7 @@ class ImageFile if (!empty($this->id)) { $this->fileRecord = new File(); $this->fileRecord->id = $this->id; - if (!$this->find(true)) { + if (!$this->fileRecord->find(true)) { // If we have set an ID, we need that ID to exist! throw new NoResultException($this->fileRecord); } -- 2.39.2