A PHP notice is generated due to an undefined index in save_draft_validate() because the function doesn't check if a particular array key exists before testing it.

A patch is included which will only test the contents of that array key if the array key exists.

CommentFileSizeAuthor
save_draft-php-warning.patch743 byteschriscohen

Comments

pravin ajaaz’s picture

Status: Active » Needs review
pravin ajaaz’s picture

wOOge’s picture

I applied this patch but there seems to be another issue with line 80, probably needs the same treatment:

Notice: Undefined index: #value in save_draft_validate() (line 80 of /srv/www/website.com/sites/all/modules/save_draft/save_draft.module).

wOOge’s picture

Status: Needs review » Needs work
pravin ajaaz’s picture

Please provide more details on the issue. I couldn't replicate it.

pravin ajaaz’s picture

Status: Needs work » Postponed (maintainer needs more info)
rooby’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closing due to inactivity. Feel free to reopen if you have instructions on how to replicate the issue.