Changeset 77106 in spip-zone


Ignore:
Timestamp:
Oct 9, 2013, 5:43:33 PM (6 years ago)
Author:
kent1@…
Message:

utiliser sql_allfetsel + foreach plutôt que sql_select + sql_fetch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/emballe_medias/emballe_medias/trunk/emballe_medias_fonctions.php

    r73371 r77106  
    3939                return false;
    4040        $mimes_finaux = array();
    41         $mimes = sql_select('*','spip_types_documents',sql_in('extension',$array));
    42         while($mime=sql_fetch($mimes)){
     41        $mimes = sql_allfetsel('mime_type','spip_types_documents',sql_in('extension',$array));
     42        foreach($mimes as $mime){
    4343                $mimes_finaux[] = $mime['mime_type'];
    4444        }
Note: See TracChangeset for help on using the changeset viewer.