forked from science-ation/science-ation
Fix dave's typo on inputttype (inputtype) so 'date' fields will work again!
This commit is contained in:
parent
13ef318f27
commit
25c6251c65
@ -548,7 +548,6 @@ class TableEditor
|
||||
|
||||
$editdata = array();
|
||||
|
||||
// print_r($_POST);
|
||||
foreach($this->editfields AS $f=>$n)
|
||||
{
|
||||
$inputtype = '';
|
||||
@ -567,7 +566,7 @@ class TableEditor
|
||||
|
||||
$editdata[$f] = "'$yy-$mm-$dd";
|
||||
|
||||
if($inputttype == 'date') {
|
||||
if($inputtype == 'date') {
|
||||
$editdata[$f] .= "'";
|
||||
} else if($_POST[$f."_hour"]!="" && $_POST[$f."_minute"]!="") {
|
||||
$hh = intval($_POST[$f."_hour"]);
|
||||
|
Loading…
Reference in New Issue
Block a user