Make sure we have an array. Props Ozh and David House. fixes #2313

git-svn-id: https://develop.svn.wordpress.org/trunk@3467 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-01-20 21:07:10 +00:00
parent 19515e03dd
commit c2835f7266
1 changed files with 2 additions and 2 deletions

View File

@ -372,13 +372,13 @@ class WP_Query {
$all_page_ids = get_all_page_ids();
$reqpage = 0;
foreach ( $all_page_ids as $page_id ) {
if (is_array($all_page_ids)) { foreach ( $all_page_ids as $page_id ) {
$page = get_page($page_id);
if ( $page->fullpath == $page_path ) {
$reqpage = $page_id;
break;
}
}
} }
$where .= " AND (ID = '$reqpage')";
} elseif ('' != $q['attachment']) {