Corrected checking for empty vals in postmeta

git-svn-id: http://svn.automattic.com/wordpress/trunk@1061 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
emc3 2004-04-12 17:31:37 +00:00
parent 28b7da1c4f
commit 064d6633b0
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ function add_meta($post_ID) {
$metakeyinput = trim($_POST['metakeyinput']);
$metavalue = trim($_POST['metavalue']);
if (isset($metavalue) && (('#NONE#' != $metakeyselect) || $metakeyinput)) {
if (!empty($metavalue) && ((('#NONE#' != $metakeyselect) && !empty($metakeyselect)) || !empty($metakeyinput))) {
// We have a key/value pair. If both the select and the
// input for the key have data, the input takes precedence: