Quick fix for quotes and (int).

git-svn-id: http://svn.automattic.com/wordpress/trunk@1417 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-06-11 22:53:52 +00:00
parent 5774c3204d
commit eea3dca4ae
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");