diff --git a/html/includes/graphs/macaccounting/auth.inc.php b/html/includes/graphs/macaccounting/auth.inc.php
index 6a29150294..75e0322265 100644
--- a/html/includes/graphs/macaccounting/auth.inc.php
+++ b/html/includes/graphs/macaccounting/auth.inc.php
@@ -7,7 +7,7 @@ if (is_numeric($id))
if (is_array($acc))
{
- if($auth || port_permitted($acc['interface_id'])))
+ if($auth || port_permitted($acc['interface_id']))
{
if(is_file($config['rrd_dir'] . "/" . $acc['hostname'] . "/" . safename("cip-" . $acc['ifIndex'] . "-" . $acc['mac'] . ".rrd")))
{