[Pieforms-commit] SF.net SVN: pieforms:[297] pieforms-php5/trunk/src/pieform.php
Status: Alpha
Brought to you by:
oracleshinoda
From: <ora...@us...> - 2008-10-13 23:17:13
|
Revision: 297 http://pieforms.svn.sourceforge.net/pieforms/?rev=297&view=rev Author: oracleshinoda Date: 2008-10-13 23:17:03 +0000 (Mon, 13 Oct 2008) Log Message: ----------- Don't call the Pieform js function on nonexistent form. Thanks to Richard Mansfield. Modified Paths: -------------- pieforms-php5/trunk/src/pieform.php Modified: pieforms-php5/trunk/src/pieform.php =================================================================== --- pieforms-php5/trunk/src/pieform.php 2008-07-23 22:55:36 UTC (rev 296) +++ pieforms-php5/trunk/src/pieform.php 2008-10-13 23:17:03 UTC (rev 297) @@ -668,8 +668,9 @@ // form has been submitted the javascript from the first page load is // still active in the document // 2) The form is NOT a JS form, but has a presubmitcallback - if (($this->data['jsform'] && !$this->submitted) - || (!$this->data['jsform'] && $this->data['presubmitcallback'])) { + if ($outputformtags && + (($this->data['jsform'] && !$this->submitted) + || (!$this->data['jsform'] && $this->data['presubmitcallback']))) { // Establish which buttons in the form are submit buttons. This is // used to detect which button was pressed to cause the form // submission This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |