diff --git a/json.php b/json.php index 2a75344..e73ae26 100644 --- a/json.php +++ b/json.php @@ -107,10 +107,7 @@ function instantly () { if ($config["afficheIndex"] && !$optarif) { - $tab_optarif = getOPTARIF(false); - $optarif = $tab_optarif["OPTARIF"]; - } else { - $optarif = null; + $optarif = getOPTARIF(false); } $query = queryInstantly($optarif);