The submit handler for the blocks admin gives an E_ALL notice for each block when throttle.module is disabled. Attached one-liner fixes it using !empty().
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | blocks_nothrottle_0.patch | 1.21 KB | ChrisKennedy |
| blocks_nothrottle.patch | 1.21 KB | ChrisKennedy |
Comments
Comment #1
dries commentedthrottle is an integer and we're passing in the empty string? Might be better to explicitly pass it 1 and 0?
Comment #2
ChrisKennedy commentedAh sorry - rerolled. I changed it from !empty to isset also, which I think is clearer.
Comment #3
ChrisKennedy commentedhttp://drupal.org/node/143384 marked as a duplicate, same patch as #3.
Comment #4
ChrisKennedy commentedOops, I meant #2.
Comment #5
rstamm commentedPatch #2 works as advertised.
Comment #6
drewish commentedyeah +1, i wrote the same patch.
Comment #7
dries commentedCommitted. Thanks Chris.
Comment #8
drummCommitted to 5.
Comment #9
(not verified) commented