minor fix to use intval

git-svn-id: https://develop.svn.wordpress.org/trunk@1295 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
michelvaldrighi 2004-05-17 14:53:22 +00:00
parent 7d14626440
commit 80806a5dca
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);
?>