making the post meta accept 0 as a value

git-svn-id: https://develop.svn.wordpress.org/trunk@1019 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Alex King 2004-03-26 22:16:00 +00:00
parent ab33245ad1
commit 5a37c37d10
1 changed files with 1 additions and 1 deletions

View File

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