From: Aaron Schulz Date: Mon, 13 Oct 2008 15:40:02 +0000 (+0000) Subject: Improve hidden field checks for bug 1181 X-Git-Tag: 1.31.0-rc.0~44760 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=e6878fdcb76e757947a1b81d2fecf8e15bd91fd7;p=lhc%2Fweb%2Fwiklou.git Improve hidden field checks for bug 1181 --- 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" );