forked from science-ation/science-ation
Adjust Dennis's conferences editor commit slightly
This commit is contained in:
parent
4ba97420ee
commit
0968725a5f
@ -633,16 +633,13 @@ function create_conference($params){
|
||||
mysql_query("INSERT INTO conferences (oid, name, type, status) VALUES (1, '" . $cname . "', '$ctype', 'pending')");
|
||||
|
||||
//if its created brand spanking new, we set the copyoriginal and copyparent to be the same as the id
|
||||
$id=mysql_insert_id();
|
||||
mysql_query("UPDATE conferences SET copyoriginal='$id', copyparent='$id' WHERE id='$id'");
|
||||
$conferences_id=mysql_insert_id();
|
||||
mysql_query("UPDATE conferences SET copyoriginal='$conferences_id', copyparent='$conferences_id' WHERE id='$conferences_id'");
|
||||
|
||||
$errorMessage = mysql_error();
|
||||
if($errorMessage){
|
||||
return "SQL Error:<br/>$errorMessage";
|
||||
}
|
||||
// Dennis mysql_insert_id returns 0 because it follows an update query (no auto increment done)
|
||||
//$conferences_id = mysql_insert_id();
|
||||
$conferences_id = $id;
|
||||
//copy over the award_types defaults
|
||||
$q=mysql_query("SELECT * FROM award_types WHERE conferences_id='-1'");
|
||||
while($r=mysql_fetch_object($q)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user