minor fix to use intval

git-svn-id: http://svn.automattic.com/wordpress/trunk@1295 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
michelvaldrighi 2004-05-17 14:53:22 +00:00
parent 45cc4ca471
commit 152c8ec224
1 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,8 @@ break;
case 'edit':
require_once ('admin-header.php');
$category = $wpdb->get_row("SELECT * FROM $tablecategories WHERE cat_ID = '{$_GET['cat_ID']}'");
$cat_ID = intval($_GET['cat_ID']);
$category = $wpdb->get_row("SELECT * FROM $tablecategories WHERE cat_ID = '$cat_ID'");
$cat_name = stripslashes($category->cat_name);
?>