Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: ChrisKennedy commentedAh sorry - rerolled. I changed it from !empty to isset also, which I think is clearer.
Comment #3
ChrisKennedy CreditAttribution: ChrisKennedy commentedhttp://drupal.org/node/143384 marked as a duplicate, same patch as #3.
Comment #4
ChrisKennedy CreditAttribution: ChrisKennedy commentedOops, I meant #2.
Comment #5
rstamm CreditAttribution: rstamm commentedPatch #2 works as advertised.
Comment #6
drewish CreditAttribution: drewish commentedyeah +1, i wrote the same patch.
Comment #7
Dries CreditAttribution: Dries commentedCommitted. Thanks Chris.
Comment #8
drummCommitted to 5.
Comment #9
(not verified) CreditAttribution: commented