Changeset 82465 in spip-zone


Ignore:
Timestamp:
May 16, 2014, 4:31:17 PM (5 years ago)
Author:
fil@…
Message:

un peu de logique, si on demande un tag il faut donner le tag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/indexer/trunk/indexer_fonctions.php

    r82464 r82465  
    2626    if ($tag) {
    2727        if ($tag == '-') {
     28            $sq->select("(LENGTH(properties.tags) = 0) AS tag");
     29        } else {
    2830            $sq->select("IN(properties.tags, " . $sq->quote($tag) . ") AS tag");
    29         } else {
    30             $sq->select("(LENGTH(properties.tags) = 0) AS tag");
    3131        }
    3232        $sq->where("tag = 1");
Note: See TracChangeset for help on using the changeset viewer.