From e6878fdcb76e757947a1b81d2fecf8e15bd91fd7 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 13 Oct 2008 15:40:02 +0000 Subject: [PATCH] Improve hidden field checks for bug 1181 --- includes/EditPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index bf431776f2..ff9d79a66c 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -574,7 +574,7 @@ class EditPage { $this->scrolltop = $request->getIntOrNull( 'wpScrolltop' ); - if ( is_null( $this->edittime ) ) { + if ( is_null($this->section) || !$this->edittime || !$this->starttime ) { # If the form is incomplete, force to preview. wfDebug( "$fname: Form data appears to be incomplete\n" ); wfDebug( "POST DATA: " . var_export( $_POST, true ) . "\n" ); -- 2.20.1