In vbdhome_admin.php
Find this :
PHP Code:
print_form_header('vbdhome_admin', 'blocsperso_doedit', 1);
Below add :
PHP Code:
construct_hidden_code('id', $id);
Then
Find this :
PHP Code:
if($_POST['do'] == "blocsperso_doedit") {
globalize($_POST, array('nom' => STR,'contenu' => STR,'place' => INT));
Replace by :
PHP Code:
if($_POST['do'] == "blocsperso_doedit") {
globalize($_POST, array('nom' => STR,'contenu' => STR,'place' => INT, 'id' => INT));
Finally Find :
PHP Code:
$DB_site->query("UPDATE ".TABLE_PREFIX."vbdhome_blocsperso SET nom='".addslashes($nom)."',contenu='".addslashes($contenu)."',place='$place'");
Replace by
PHP Code:
$DB_site->query("UPDATE ".TABLE_PREFIX."vbdhome_blocsperso SET nom='".addslashes($nom)."',contenu='".addslashes($contenu)."',place='$place' WHERE id='$id'");