git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 22dbeaef authored by mmn's avatar mmn

Used ->find(true) on wrong object

parent 9720fd82
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment