Unquoted SQL.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1232 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
348dbc769b
commit
0ef9bfe6db
|
@ -208,7 +208,7 @@ function has_meta($postid) {
|
||||||
return $wpdb->get_results("
|
return $wpdb->get_results("
|
||||||
SELECT meta_key, meta_value, meta_id, post_id
|
SELECT meta_key, meta_value, meta_id, post_id
|
||||||
FROM $tablepostmeta
|
FROM $tablepostmeta
|
||||||
WHERE post_id = $postid
|
WHERE post_id = '$postid'
|
||||||
ORDER BY meta_key,meta_id",ARRAY_A);
|
ORDER BY meta_key,meta_id",ARRAY_A);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue