Closed (fixed)
Project:
Taxonomy Access Control
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 Jun 2009 at 08:06 UTC
Updated:
3 Jan 2014 at 00:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dman commentedI got a php E_NOTICE warning on node edit pages for nodes that are NOT using taxonomy_access tags.
In the interests of cleanup, declaring the array before putting stuff into it is good practice:
there may be more, but that's the one i've seen so far.
Comment #2
dman commentedFWIW, here's a full code-style cleanup while I was there. Just whitepace in 20 places, plus a SQL argument tweak.
It leaves one warning outstanding in the install file that I don't understand.
yet update_sql() does not support arg substitution, so I'm not sure if I should mess with that. It's easy enough, I'm just not sure it's right to do so.
Comment #3
dman commentedUm, attachment :-)
Comment #4
luti commentedCoder is still not happy...
I've found the following is needed to make a complete cleanup for at least taxonomy_access.module and taxonomy_access_admin.inc (taxonomy_access.install remains unfixed):
Comment #5
dman commentedHm, I was on coder DRUPAL-6-1 stable. Looks like there's some new conditions been added in dev.
Comment #6
keve commentedThanks for the cleanup.
Commited with a small change:
Comment #7
keve commentedTo commemt #2:
Solution would be: create your own update_sql function
http://api.drupal.org/api/function/update_sql/6#comment-412
Comment #8
keve commentedPorted until comment #6.
Comment #9
xjmRe #2: In this situation, it should be sufficient to typecast the grants as integers for use in the query string, since there is no other data type nor user-submitted data involved.
Patch attached using that method, plus some code cleanup for recently committed features. Patch is against CVS and passes coder on "Normal."
Comment #10
xjmComment #11
xjmComment #12
xjmCommitted to 6.x-1.x-dev.