Skip to content
Snippets Groups Projects
Commit a715d8d1 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #5064 fix count visa users

parent cb02f012
No related branches found
No related tags found
No related merge requests found
...@@ -5,9 +5,9 @@ $coll_id = $_REQUEST['collId']; ...@@ -5,9 +5,9 @@ $coll_id = $_REQUEST['collId'];
require_once "modules" . DIRECTORY_SEPARATOR . "visa" . DIRECTORY_SEPARATOR . "class" . DIRECTORY_SEPARATOR . "class_modules_tools.php"; require_once "modules" . DIRECTORY_SEPARATOR . "visa" . DIRECTORY_SEPARATOR . "class" . DIRECTORY_SEPARATOR . "class_modules_tools.php";
$visa = new visa(); $db = new Database();
$stmt = $db->query("SELECT listinstance_id from listinstance WHERE res_id= ? and coll_id = ? and (item_mode = ? OR item_mode = ?)", array($res_id, $coll_id, 'visa', 'sign'));
$nbVisa = $visa->nbVisa($res_id,$coll_id); $nbVisa = $stmt->rowCount();
if ($nbVisa == 0){ if ($nbVisa == 0){
$class = 'nbResZero'; $class = 'nbResZero';
...@@ -16,7 +16,6 @@ if ($nbVisa == 0){ ...@@ -16,7 +16,6 @@ if ($nbVisa == 0){
$styleDetail = '#9AA7AB'; $styleDetail = '#9AA7AB';
} }
else{ else{
$nbVisa = $nbVisa +1;
$class = 'nbRes'; $class = 'nbRes';
$style = ''; $style = '';
$style2 = 'display:inherit;'; $style2 = 'display:inherit;';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment