Skip to content
Snippets Groups Projects
Commit a43cbc2b authored by Tim Repke's avatar Tim Repke
Browse files

bug fixed: admin mail didn't filter for current_fahrt_id causing participants...

bug fixed: admin mail didn't filter for current_fahrt_id causing participants of all trips to be listed
parent 723d10c4
No related branches found
No related tags found
No related merge requests found
......@@ -122,7 +122,7 @@ $(function(){
</form>';
$query = "SELECT mehl, forname, sirname FROM bachelor";
$where = array();
$where = array("fahrt_id = ".$config_current_fahrt_id);
$dsa = "";
if(!isset($_REQUEST['submit'])){
// not submitted
......@@ -182,16 +182,15 @@ if(!isset($_REQUEST['submit'])){
array_push($where,"backstepped IS NULL");
}
}
if(count($where)>0){
$query .= " WHERE ";
if(count($where)>0){
$query .= " WHERE ";
foreach($where AS $w)
$query .= "(".$w.") AND ";
foreach($where AS $w)
$query .= "(".$w.") AND ";
$query = substr($query,0,-4); // cut last AND
}
$query = substr($query,0,-4); // cut last AND
}
//$config_verbose_level = 4;
......
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