diff --git a/index.php b/index.php
index 3909f46..9d6292f 100644
--- a/index.php
+++ b/index.php
@@ -17,9 +17,10 @@ if (!empty($_GET)) {
unset($_GET);
}
-if (empty($ci_['type']) || !isset($permitType[$ci_['type']])) {
+if ((empty($ci_['type']) || !isset($ci_['type'])) || !isset($permitType[$ci_['type']])) {
$msgError[] = 'Vous devez spécifier le type de donnée. Exemple : type=dj
';
$ci_['doc'] = '1';
+ $type = null;
} else {
$type = $ci_['type'];
}
@@ -27,6 +28,7 @@ if (empty($ci_['type']) || !isset($permitType[$ci_['type']])) {
if (empty($ci_['id'])) {
$msgError[] = 'Vous devez spécifier un identifiant (ID). Exemple : id=45657231
';
$ci_['doc'] = '1';
+ $id = null;
} else {
$pieces = explode(',', $ci_['id']);
$id = filter_var($pieces[0], FILTER_SANITIZE_NUMBER_INT);
@@ -43,7 +45,7 @@ if ($type === 'dj') {
$info = $dj_Suivi[$ci_['info']];
} else {
if (!empty($ci_['edi']) && $ci_['edi'] == 1) {
- $cat = '';
+ $cat = null;
} else {
$cat = 'consultation/';
}
@@ -123,8 +125,7 @@ if ($ci_['doc'] === '1') {
Pour savoir comment utiliser Gthim dans OBIEE, utilisez cette documentation
'; - - if ($ci_['doc'] === '1' && ($type === 'dj' || !isset($permitType[$ci_['type']]))) { + if ($ci_['doc'] === '1' && ($type === 'dj' || !isset($permitType[$type]))) { echo ''.$thisUrl.'/?type=dj&id=&info=loi
type=p
'.$thisUrl.'/?type=p&id=&info=coo
type=ods