use trim on values when saving.

This commit is contained in:
Isaac Connor 2016-01-14 09:37:41 -05:00
parent 3ebeaec8ab
commit 4520902dd2
1 changed files with 1 additions and 1 deletions

View File

@ -792,7 +792,7 @@ function getFormChanges( $values, $newValues, $types=false, $columns=false )
{
if ( !isset($values[$key]) || ($values[$key] != $value) )
{
$changes[$key] = "$key = ".dbEscape($value);
$changes[$key] = "$key = ".dbEscape(trim($value));
}
break;
}