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:
parent
7d14626440
commit
80806a5dca
|
@ -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