]> git.nbdom.net Git - nb.git/commitdiff
dbq2
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 14 Jun 2016 23:41:43 +0000 (00:41 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 14 Jun 2016 23:41:43 +0000 (00:41 +0100)
etc/dbs/rent.php

index ae576fb2a8375863453408d1fd1125f80a0b54bd..ce33706cf4224972abd9f32cb201ceeecccbb970 100644 (file)
@@ -73,11 +73,11 @@ function untilde($path) {
 if (!empty($_SERVER['DOCUMENT_ROOT'])) {
   $CONF['_rent']['tables']['tenant'] = array(
     'row_parse_post' => function(&$r) {
-      $url = '/data/tenant';
+      $url = '/data/tenant/'.$r['id'];
 
       if (
         (
-          (!$doc=$r['doc']) and file_exists( $dir = $_SERVER['DOCUMENT_ROOT'].$url.'/'.$r['id'] )
+          (!$doc=$r['doc']) and file_exists( $dir = $_SERVER['DOCUMENT_ROOT'].$url )
         ) or (
           ( $dir = untilde($r['doc']) ) 
           and file_exists($dir) and is_dir($dir)