From deee9cb66ced90f2118dac2e0da7fbc6f37b4a48 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Wed, 15 Jun 2016 00:41:43 +0100 Subject: [PATCH] dbq2 --- etc/dbs/rent.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.47.3