Closed (fixed)
Project:
MaxLength
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2010 at 14:42 UTC
Updated:
9 Jul 2010 at 17:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
mrfelton commentedComment #2
dawehnerWouldn't be a isset be enough?
Powered by Dreditor.
Comment #3
mrfelton commented@dereine: I imagine it would. Are there performance implications using is_array vs isset?
Comment #4
dawehnerNot really, but php should be logic fine, if you just read the code. There isset is more what the value of the array is, and should be checked.
Comment #5
mrtoner commentedI confirmed this independently while trying to fix an issue with Better Formats module. The attached patch is identical to #1, but uses isset.
Comment #6
noel.rivas commentedI found the same issue while working with nodecomment and maxlength. I created issue #836168: Altering body field causes conflicts with other modules whose proposed fix is almost identical to the one found here, the only difference being altering the comment before the conditional, which I find trivial. The issue is now marked as duplicate.
The isset fix is working for me as well.
Suscribing the patch on #5
Comment #7
dawehnerThanks