Changeset 74797 in spip-zone


Ignore:
Timestamp:
Aug 17, 2013, 9:15:26 AM (6 years ago)
Author:
kent1@…
Message:

Mauvaise requête sql

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _core_/branches/spip-3.0/plugins/medias/action/acceder_document.php

    r69327 r74797  
    3737                $status = 404;
    3838        } else {
    39                 $where = "documents.fichier=".sql_quote(set_spip_doc($file))
    40                 . ($arg ? " AND documents.id_document=".intval($arg): '');
     39                $where = "D.fichier=".sql_quote(set_spip_doc($file))
     40                . ($arg ? " AND D.id_document=".intval($arg): '');
    4141
    4242                $doc = sql_fetsel("D.id_document, D.titre, D.fichier, T.mime_type, T.inclus, D.extension", "spip_documents AS D LEFT JOIN spip_types_documents AS T ON D.extension=T.extension",$where);
Note: See TracChangeset for help on using the changeset viewer.