forked from science-ation/science-ation
Fix daves typo's :)
This commit is contained in:
parent
9f9b612e5d
commit
d1db2cceda
@ -427,7 +427,7 @@ class TableEditor
|
||||
function defaultSave($insert_mode, $keyval, $editdata)
|
||||
{
|
||||
$query = "";
|
||||
if($insert_mmode) {
|
||||
if($insert_mode) {
|
||||
$query="INSERT INTO `{$this->table}` (";
|
||||
//create list of fields to insert
|
||||
foreach($editdata AS $f=>$n)
|
||||
@ -449,7 +449,7 @@ class TableEditor
|
||||
//rip off the last comma
|
||||
$query=substr($query,0,-1);
|
||||
|
||||
if($insertmode) {
|
||||
if($insert_mode) {
|
||||
$query.=")";
|
||||
} else {
|
||||
$query.=" WHERE {$this->primaryKey}='{$keyval}'";
|
||||
@ -618,7 +618,7 @@ class TableEditor
|
||||
}
|
||||
|
||||
|
||||
if($insertmode) {
|
||||
if($inser_tmode) {
|
||||
$text_error = "adding new";
|
||||
$text_happy = "added new";
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user