via chx:

if (variable_get('maintenance_helper_message_show', FALSE) && !count($_POST)) | no need for count just !_POST will do. And it should check for request method anwyays what happens to FILES

CommentFileSizeAuthor
#3 795570-post-check-3-D6.patch761 bytesclaar

Comments

greggles’s picture

I don't understand the point about FILES.

Won't !$_POST throw a notice?

dave reid’s picture

If you want to get technical, then !empty($_POST) is the best as it doesn't have to cast an integer to a boolean like count does.

claar’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Assigned: Unassigned » claar
Status: Active » Needs review
StatusFileSize
new761 bytes

Unless I'm mistaken (always a good bet), we can remove the $_POST check all-together, since we want the message to show on all pages.

If the $_POST check was just to prevent multiple messages, that's been fixed in #965154: Prevent duplicate messages.

$_POST check removed in attached patch -- my limited testing shows no negative impacts.

claar’s picture

Status: Needs review » Fixed

Committed to 6.x-2.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.