in reply to "Vote" button appears when there is nothing to vote about.

Just take it as a useless feature. Seeing as checking to see if it should display the button or not would probably mean yet another extra SQL query to the DB, I'd rather see the button than slow down PM any more.. ,)

C.

  • Comment on Re: "Vote" button appears when there is nothing to vote about.

Replies are listed 'Best First'.
Re: Re: "Vote" button appears when there is nothing to vote about.
by bart (Canon) on Oct 29, 2003 at 11:01 UTC
    I don't get why people here tend to think just everything needs to be an SQL query.

    Just keep track on whether or not any vote radio buttons have been emitted, or not. At the end, when it's time to finally emit the submit button, just supporess when there haven't been any.