Changeset 289 for trunk/admin/modules/Elezioni/ele_controlli.php
- Timestamp:
- Apr 24, 2019, 11:18:11 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_controlli.php
r288 r289 242 242 ############################## 243 243 $err=0; $err2=0; 244 $sql="SELECT preferenze,disgiunto,solo_gruppo FROM ".$prefix."_ele_cons_comune where id_cons='$id_cons'"; 245 $res = $dbi->prepare("$sql"); 246 $res->execute(); 247 list($prefs,$disg,$solog)=$res->fetch(PDO::FETCH_NUM); 244 248 if($id_lista){ 245 $sql="SELECT preferenze FROM ".$prefix."_ele_cons_comune where id_cons='$id_cons'";246 $res = $dbi->prepare("$sql");247 $res->execute();248 list($prefs)=$res->fetch(PDO::FETCH_NUM);249 249 $sql="select voti from ".$prefix."_ele_voti_lista where id_lista='$id_lista' and id_sez='$id_sez'"; 250 250 $res = $dbi->prepare("$sql"); … … 294 294 } 295 295 if ($validil+$contestatil+$nullil+$totsg!=$votiv and $validil+$contestatil+$nullil+$solol>0) $err=1; 296 if( $tnl!=$nullil|| $totsl!=$solol) $err=1;296 if(($solog && !$disg && $tnl!=$nullil) || $totsl!=$solol) $err=1; 297 297 } 298 298
Note:
See TracChangeset
for help on using the changeset viewer.