]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/File_redirection.php
Fix typo on 986030060b84
[quix0rs-gnu-social.git] / classes / File_redirection.php
index d1b266c90b4a89f96625ece8e3b81084040519b0..742a6143cc43a93278c579accf90faf891914861 100644 (file)
@@ -445,8 +445,8 @@ class File_redirection extends Managed_DataObject
     }
 
     public function getFile() {
-        if(empty($this->file) && $this->file_id) {
-            $this->file = File::getKV('id', $this->file_id);
+        if (!$this->file instanceof File) {
+            $this->file = File::getByID($this->file_id);
         }
 
         return $this->file;