mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 17:45:31 +00:00
keep last post data in the form values
This commit is contained in:
parent
b47b9dc900
commit
8b7141e2c1
1 changed files with 6 additions and 0 deletions
|
|
@ -400,6 +400,12 @@ else {
|
|||
{
|
||||
// Refresh magnet data
|
||||
$magnet = $db->getMagnet($magnet->magnetId);
|
||||
|
||||
// Replace fields by last POST data
|
||||
foreach ($_POST as $key => $value)
|
||||
{
|
||||
$magnet->{$key} = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue