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:
parent
45cc4ca471
commit
152c8ec224
|
@ -85,7 +85,8 @@ break;
|
||||||
case 'edit':
|
case 'edit':
|
||||||
|
|
||||||
require_once ('admin-header.php');
|
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);
|
$cat_name = stripslashes($category->cat_name);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue