forked from GNUsocial/gnu-social
Used ->find(true) on wrong object
This commit is contained in:
parent
9720fd8250
commit
22dbeaef29
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user