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();
|
$editdata = array();
|
||||||
|
|
||||||
// print_r($_POST);
|
|
||||||
foreach($this->editfields AS $f=>$n)
|
foreach($this->editfields AS $f=>$n)
|
||||||
{
|
{
|
||||||
$inputtype = '';
|
$inputtype = '';
|
||||||
@ -567,7 +566,7 @@ class TableEditor
|
|||||||
|
|
||||||
$editdata[$f] = "'$yy-$mm-$dd";
|
$editdata[$f] = "'$yy-$mm-$dd";
|
||||||
|
|
||||||
if($inputttype == 'date') {
|
if($inputtype == 'date') {
|
||||||
$editdata[$f] .= "'";
|
$editdata[$f] .= "'";
|
||||||
} else if($_POST[$f."_hour"]!="" && $_POST[$f."_minute"]!="") {
|
} else if($_POST[$f."_hour"]!="" && $_POST[$f."_minute"]!="") {
|
||||||
$hh = intval($_POST[$f."_hour"]);
|
$hh = intval($_POST[$f."_hour"]);
|
||||||
|
Loading…
Reference in New Issue
Block a user