]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Used ->find(true) on wrong object
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 4 Mar 2015 12:46:51 +0000 (13:46 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 4 Mar 2015 12:46:51 +0000 (13:46 +0100)
lib/imagefile.php

index 97aa85c1ffb1e6a21508ec9d90dac80d17f74c84..ba7e428f6d38352de03e60190c1d0c90f2f30ccc 100644 (file)
@@ -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);
             }