From: Nicolas Boisselier Date: Fri, 17 Jun 2016 10:13:28 +0000 (+0200) Subject: doc X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=f361020b3208057e9e12d399aed2ef5e7630d4fc;p=nb.git doc --- diff --git a/etc/dbs/rent.php b/etc/dbs/rent.php index 2d0429ae..e95fff81 100644 --- a/etc/dbs/rent.php +++ b/etc/dbs/rent.php @@ -77,6 +77,8 @@ function place_doc(&$r) { return rent_doc('place',$r); } function rent_doc($table,&$r) { if (empty($_SERVER['DOCUMENT_ROOT'])) return; + #if (!empty($r['end']) and date('Ymd') > $r['end']) return $r['doc'] = isset($r['doc']) ? $r['doc'] : ''; + $url = ''; foreach (['id'.$table,'id'] as $k) { if (isset($r[$k])) {