Browse Source

fix: undefined variables

master
b_b 2 months ago
parent
commit
7916ca04ac
  1. 1
      action/editer_legende.php
  2. 2
      formulaires/editer_legende.php

1
action/editer_legende.php

@ -111,6 +111,7 @@ function tourner_legende($id_legende, $angle) {
if ($angle == 0) {
return '';
}
$err = '';
if ($angle == -90) {
$n['posx'] = $c['posy'];
$n['posy'] = $hauteur - ($c['posx'] + $c['width']);

2
formulaires/editer_legende.php

@ -12,7 +12,7 @@ function formulaires_editer_legende_charger_dist($id_legende = 'new', $id_docume
$row = sql_fetsel('*', 'spip_legendes', 'id_legende=' . intval($id_legende));
$valeurs = formulaires_editer_objet_charger('legende', $id_legende, 0, 0, $retour, '', $row, $hidden);
$valeurs = formulaires_editer_objet_charger('legende', $id_legende, 0, 0, $retour, '', $row);
if (intval($id_legende)) {
foreach ($row as $key => $val) {

Loading…
Cancel
Save