Commit 96915f77 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Use param_integer not param_variable for id

parent d34effae
......@@ -28,7 +28,7 @@ define('INTERNAL', 1);
define('ADMIN', 1);
require(dirname(dirname(__FILE__)) . '/init.php');
$itemid = param_variable('itemid');
$itemid = param_integer('itemid');
if (!delete_records('site_menu','id',$itemid)) {
json_reply('local', get_string('deletefailed','admin'));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment