[SPIP] ~maj v3.0.14-->v3.0.17
[ptitvelo/web/www.git] / www / ecrire / maj / svn10000.php
index b48580a..abe37f2 100644 (file)
@@ -301,6 +301,10 @@ function maj_liens($pivot,$l='') {
                if (!$desc = $trouver_table($ancienne_table))
                        return;
 
+               // securite pour ne pas perdre de donnees
+               if (!$trouver_table($liens))
+                       return;
+
                $champs = $desc['field'];
                if (isset($champs['maj'])) unset($champs['maj']);
                if (isset($champs[$primary])) unset($champs[$primary]);