MTrackWeb/Browse.php
authorAlan Knowles <alan@akbkhome.com>
Sun, 6 Mar 2011 15:01:07 +0000 (23:01 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sun, 6 Mar 2011 15:01:07 +0000 (23:01 +0800)
MTrackWeb/Browse.php

index 20b69ec..1989acd 100644 (file)
@@ -33,6 +33,9 @@ class MTrackWeb_Browse extends MTrackWeb
         if (!strlen($this->pi) || $this->pi == '/') {
             $this->pi = '';
         }
+        if (count($crumbs) < 3) {
+            return; // no repo selected...
+        }
         
         $this->repo = DB_DataObject::factory('repos');
         $this->repo->parent = $crumbs[0] == 'default' ? '' : 'user:' . $crumbs[0];