From: Nicolas Boisselier Date: Tue, 14 Jun 2016 23:41:43 +0000 (+0100) Subject: dbq2 X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=deee9cb66ced90f2118dac2e0da7fbc6f37b4a48;p=nb.git dbq2 --- diff --git a/etc/dbs/rent.php b/etc/dbs/rent.php index ae576fb2..ce33706c 100644 --- a/etc/dbs/rent.php +++ b/etc/dbs/rent.php @@ -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)