Closed (duplicate)
Project:
Drupal core
Version:
6.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
19 May 2008 at 22:10 UTC
Updated:
10 Jan 2010 at 04:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
webchickComment #2
david straussHere's a D6 version.
Comment #3
david straussJust checked, this is "fixed" in Drupal 7 by virtue of not running such a check at all.
Comment #4
david straussWhoops, my later comment overwrote webchick's status change.
Comment #5
david straussUpdated patches.
Comment #6
david straussAccount for possibility of "" and "0" as paths.
Comment #7
drumm$count is no longer an accurate name for the variable. I would rename it to $has_paths with a boolean value. The ternary operator and '> 0' can be removed.
Comment #8
david straussUpdated patches to include drumm's suggestions.
Comment #9
david straussIgnore those last patches. I need to handle a regression in "0" and "" path handling.
Comment #10
drummI meant keep the !== FALSE, but remove the redundant ternary.
Comment #11
david strauss@drumm Yes, I realized that. That's why I said my last post was bad.
Comment #12
dave reidDuplicate of #196862: COUNT(*) is an expensive query in InnoDB.