Unquoted SQL.

git-svn-id: https://develop.svn.wordpress.org/trunk@1232 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-05-05 08:18:30 +00:00
parent eb6bce2012
commit 0f635b45df
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ function has_meta($postid) {
return $wpdb->get_results("
SELECT meta_key, meta_value, meta_id, post_id
FROM $tablepostmeta
WHERE post_id = $postid
WHERE post_id = '$postid'
ORDER BY meta_key,meta_id",ARRAY_A);
}