Ignore:
Timestamp:
Feb 8, 2020, 2:46:19 PM (5 years ago)
Author:
roby
Message:

Corrette le funzioni di registrazione e controllo dei voti per i referendum

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/modules/Elezioni/salva_ref.php

    r262 r326  
    3838if (isset($_GET['votinulli'])) $votinulli=intval($_GET['votinulli']); else $votinulli='0';
    3939if (isset($_GET['id_comune'])) $id_comune=intval($_GET['id_comune']); else $id_comune='0';
    40 if (isset($_GET['ops'])) $ops=intval($_GET['ops']); else $ops='0';
     40if (isset($_GET['ops'])) $ops=intval($_GET['ops']); else $ops='4';
    4141if (isset($_GET['delete'])) $delete=intval($_GET['delete']); else $delete='';
    4242if (isset($_GET['circo'])) get_magic_quotes_gpc() ? $circo=$_GET['circo']:$circo=addslashes($_GET['circo']); else $circo='';
     
    6464##################
    6565        if($do==1) {
    66                 $sql="delete from ".$prefix."_ele_voti_ref where id_cons='$id_cons' and id_sez='$id_sez'";
     66                $sql="delete from ".$prefix."_ele_gruppo where id_cons='$id_cons'";
    6767                $res = $dbi->prepare("$sql");
    6868                $res->execute();
    6969        }else{
    7070
    71                 $sql="select num_gruppo from ".$prefix."_ele_voti_ref where id_cons='$id_cons' and id_sez='$id_sez'";
     71                $sql="select num_gruppo from ".$prefix."_ele_gruppo where id_cons='$id_cons'";
    7272                $result = $dbi->prepare("$sql");
    7373                $result->execute();
Note: See TracChangeset for help on using the changeset viewer.