1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 21:27:25 +02:00

datestamp auto value fix

This commit is contained in:
CaMer0n
2009-12-24 23:02:17 +00:00
parent 8b55fb138b
commit 46b36b6d55

View File

@@ -9,8 +9,8 @@
* Form Handler
*
* $Source: /cvs_backup/e107_0.8/e107_handlers/form_handler.php,v $
* $Revision: 1.104 $
* $Date: 2009-12-24 22:36:34 $
* $Revision: 1.105 $
* $Date: 2009-12-24 23:02:17 $
* $Author: e107coders $
*
*/
@@ -1356,9 +1356,12 @@ class e_form
break;
case 'datestamp':
if(vartrue($parms['auto']) && ($value == null))
// If hidden, value is updated regardless. eg. a 'last updated' field.
// If not hidden, and there is a value, it is retained. eg. during the update of an existing record.
// otherwise it is added. eg. during the creation of a new record.
if(vartrue($parms['auto']) && (($value == null) || vartrue($parms['hidden'])))
{
$value = time();
$value = time();
}
if(vartrue($parms['hidden']))