MTrackWeb/File.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 10 Mar 2011 08:44:20 +0000 (16:44 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 10 Mar 2011 08:44:20 +0000 (16:44 +0800)
MTrackWeb/File.php

index 9dd14be..1c77d4b 100644 (file)
@@ -50,7 +50,7 @@ class MTrackWeb_File extends MTrackWeb
         $this->repo = DB_DataObject::factory('repos');
         $file = $this->repo->loadFromPath($this->pi);
         
-        if (empty($file) || $this->repo->id) {
+        if (empty($file) || $this->repo->repoid) {
             throw new Exception("invalid path " . htmlspecialchars($this->pi) );
         }