Oops take care of use_Adminlevels flag.

git-svn-id: http://svn.automattic.com/wordpress/trunk@277 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
mikelittle 2003-07-27 00:31:51 +00:00
parent e63e4b034b
commit 8738bf8208

View File

@ -89,7 +89,7 @@ switch ($action) {
$all_links = join(',', $linkcheck);
$results = $wpdb->get_results("SELECT link_id, link_owner, user_level FROM $tablelinks LEFT JOIN $tableusers ON link_owner = ID WHERE link_id in ($all_links)");
foreach ($results as $row) {
if ($user_level >= $row->user_level) { // ok to proceed
if (!$use_adminlevels || ($user_level >= $row->user_level)) { // ok to proceed
$ids_to_change[] = $row->link_id;
}
}