From eea3dca4aeee801692f13dbb651f95992ca50e5b Mon Sep 17 00:00:00 2001 From: saxmatt Date: Fri, 11 Jun 2004 22:53:52 +0000 Subject: [PATCH] Quick fix for quotes and (int). git-svn-id: http://svn.automattic.com/wordpress/trunk@1417 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/link-manager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/link-manager.php b/wp-admin/link-manager.php index 82f179dbb5..8b60717c69 100644 --- a/wp-admin/link-manager.php +++ b/wp-admin/link-manager.php @@ -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");