From: Antoine Musso Date: Thu, 10 Jun 2004 16:00:21 +0000 (+0000) Subject: select less fields from sql. X-Git-Tag: 1.5.0alpha1~2940 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=ce5cd95dbbce0aea427c163778a8f01b680f55d8;p=lhc%2Fweb%2Fwiklou.git select less fields from sql. --- diff --git a/includes/Title.php b/includes/Title.php index 71bd88f731..a4766e500e 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1180,7 +1180,7 @@ class Title { $parents = array(); # get the parents categories of this title from the database - $sql = "SELECT DISTINCT cl_from,cur_namespace,cur_title,cur_id FROM cur,categorylinks + $sql = "SELECT DISTINCT cur_id FROM cur,categorylinks WHERE cl_from='$titlekey' AND cl_to=cur_title AND cur_namespace='$cns' ORDER BY cl_sortkey" ; $res = wfQuery ( $sql, DB_READ ) ;