remove warning in a new row if a 'set' field is not selected

This commit is contained in:
Steve Alberty
2001-08-08 09:14:26 +00:00
parent 229e367900
commit 189b59bad5
2 changed files with 12 additions and 4 deletions

View File

@@ -131,11 +131,15 @@ else {
} else {
$f = "field_$key";
}
if (get_magic_quotes_gpc()) {
$val = "'" . (($$f) ? implode(',', $$f) : '') . "'";
} else {
$val = "'" . addslashes(($$f) ? implode(',', $$f) : '') . "'";
if (isset($$f)) {
if (get_magic_quotes_gpc()) {
$val = "'" . (($$f) ? implode(',', $$f) : '') . "'";
} else {
$val = "'" . addslashes(($$f) ? implode(',', $$f) : '') . "'";
}
}
else
$val = "''";
break;
default:
if (get_magic_quotes_gpc()) {