In menu_enable db_query is called twice, with the result of the latter query overwriting the result of the former one.
Guess this makes no sense.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | q.patch | 539 bytes | chx |
| menu_enable.patch | 747 bytes | pancho |
In menu_enable db_query is called twice, with the result of the latter query overwriting the result of the former one.
Guess this makes no sense.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | q.patch | 539 bytes | chx |
| menu_enable.patch | 747 bytes | pancho |
Comments
Comment #1
pwolanin commentedYou're right -there is no reason to run that query twice. However, I might delete the 1st rather than the 2nd query, since hte second one would then be right before the loop that uses it.
Comment #2
panchoWell, I thought about that, too. But I guess it'd be better to initialize the variables in the order they are called in the while clause...
Comment #3
chx commentedAgreed with pwolanin.
Comment #4
gábor hojtsyIndeed, looks good, committed.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.