Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
96915f77
Commit
96915f77
authored
Nov 23, 2006
by
Richard Mansfield
Browse files
Use param_integer not param_variable for id
parent
d34effae
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/admin/deletemenuitem.json.php
View file @
96915f77
...
...
@@ -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'
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment