forked from science-ation/science-ation
Only set the school if the school is posted through, this way we dont whipe out a students school.
-This line, and those below, will be ignored-- M student_editor.php
This commit is contained in:
parent
bb4997548c
commit
45a1bdd1e4
@ -95,10 +95,11 @@ if($_POST['action']=="save")
|
|||||||
{
|
{
|
||||||
$schoolquery="";
|
$schoolquery="";
|
||||||
}
|
}
|
||||||
else
|
else if($_POST['schools_id'][$x]) {
|
||||||
{
|
|
||||||
$schoolquery="schools_id='".mysql_escape_string(stripslashes($_POST['schools_id'][$x]))."', ";
|
$schoolquery="schools_id='".mysql_escape_string(stripslashes($_POST['schools_id'][$x]))."', ";
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
$schoolquery="";
|
||||||
|
|
||||||
|
|
||||||
//UPDATE existing record
|
//UPDATE existing record
|
||||||
|
Loading…
Reference in New Issue
Block a user