Quick fix for quotes and (int).

git-svn-id: https://develop.svn.wordpress.org/trunk@1417 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-06-11 22:53:52 +00:00
parent 0d47cf1aab
commit c2e10c33ba
1 changed files with 2 additions and 2 deletions

View File

@ -278,7 +278,7 @@ switch ($action) {
check_admin_referer();
$link_id = $_GET["link_id"];
$link_id = (int) $_GET['link_id'];
if ($user_level < get_settings('links_minadminlevel'))
die (__("Cheatin' uh ?"));
@ -306,7 +306,7 @@ switch ($action) {
if ($user_level < get_settings('links_minadminlevel')) {
die(__('You do not have sufficient permissions to edit the links for this blog.'));
}
$link_id = $_GET["link_id"];
$link_id = (int) $_GET['link_id'];
$row = $wpdb->get_row("SELECT *
FROM $wpdb->links
WHERE link_id = $link_id");