making the post meta accept 0 as a value

git-svn-id: http://svn.automattic.com/wordpress/trunk@1019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
alex_t_king 2004-03-26 22:16:00 +00:00
parent b9c1be51f0
commit a8b8667730
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 ($metavalue && (('#NONE#' != $metakeyselect) || $metakeyinput)) {
if (isset($metavalue) && (('#NONE#' != $metakeyselect) || $metakeyinput)) {
// We have a key/value pair. If both the select and the
// input for the key have data, the input takes precedence: