Skip to content

Commit

Permalink
use input getint over get
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 committed Apr 18, 2017
1 parent 5a34713 commit 0830611
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion administrator/templates/isis/error.php
Expand Up @@ -31,7 +31,7 @@
$view = $input->get('view', '');
$layout = $input->get('layout', '');
$task = $input->get('task', '');
$itemid = $input->get('Itemid', '');
$itemid = $input->getInt('Itemid', 0);
$sitename = $app->get('sitename');

$cpanel = ($option === 'com_cpanel');
Expand Down
2 changes: 1 addition & 1 deletion administrator/templates/isis/index.php
Expand Up @@ -50,7 +50,7 @@
$view = $input->get('view', '');
$layout = $input->get('layout', '');
$task = $input->get('task', '');
$itemid = $input->get('Itemid', '');
$itemid = $input->getInt('Itemid', 0);
$sitename = htmlspecialchars($app->get('sitename', ''), ENT_QUOTES, 'UTF-8');
$cpanel = ($option === 'com_cpanel');

Expand Down

0 comments on commit 0830611

Please sign in to comment.