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().

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dries’s picture

Status: Needs review » Needs work

throttle is an integer and we're passing in the empty string? Might be better to explicitly pass it 1 and 0?

ChrisKennedy’s picture

Status: Needs work » Needs review
FileSize
1.21 KB

Ah sorry - rerolled. I changed it from !empty to isset also, which I think is clearer.

ChrisKennedy’s picture

http://drupal.org/node/143384 marked as a duplicate, same patch as #3.

ChrisKennedy’s picture

Oops, I meant #2.

rstamm’s picture

Status: Needs review » Reviewed & tested by the community

Patch #2 works as advertised.

drewish’s picture

yeah +1, i wrote the same patch.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks Chris.

drumm’s picture

Committed to 5.

Anonymous’s picture

Status: Fixed » Closed (fixed)