Changeset 92541 in spip-zone


Ignore:
Timestamp:
Oct 30, 2015, 9:57:42 AM (4 years ago)
Author:
marcimat@…
Message:

Notices PHP en moins

Location:
_core_/plugins/medias
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _core_/plugins/medias/action/dissocier_document.php

    r90058 r92541  
    4949        }
    5050
    51         $suppr=false;
     51        $suppr = $check = false;
    5252        if (count($arg)>3 AND $arg[3]=='suppr')
    5353                $suppr = true;
  • _core_/plugins/medias/medias_fonctions.php

    r90111 r92541  
    2424if (isset($GLOBALS['visiteur_session']['zip_to_clean'])
    2525  AND test_espace_prive()
     26  AND isset($_SERVER['REQUEST_METHOD'])
    2627  AND $_SERVER['REQUEST_METHOD']!=='POST'){
    2728        $zip_to_clean = unserialize($GLOBALS['visiteur_session']['zip_to_clean']);
     
    3738// capturer un formulaire POST plus grand que post_max_size
    3839// on genere un minipres car on ne peut rien faire de mieux
    39 if ($_SERVER['REQUEST_METHOD']=='POST'
     40if (isset($_SERVER['REQUEST_METHOD'])
     41        AND $_SERVER['REQUEST_METHOD']=='POST'
    4042        AND empty($_POST)
    4143        AND strlen($_SERVER['CONTENT_TYPE'])>0
Note: See TracChangeset for help on using the changeset viewer.