r2748 - trigger_snmpportfinder(): quick fix after previous changeset
authorDenis Ovsienko <infrastation@yandex.ru>
Thu, 14 May 2009 11:55:53 +0000 (11:55 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Thu, 14 May 2009 11:55:53 +0000 (11:55 +0000)
inc/triggers.php

index 4afb9b9d7ba7dd020ae05a243ee1dbfba4402975..b5178a21552ccc50871dff1c81f21b97088d0420 100644 (file)
@@ -44,7 +44,7 @@ function trigger_livevlans ()
 function trigger_snmpportfinder ()
 {
        assertUIntArg ('object_id', __FUNCTION__);
-       $object = spotEntity ('object', $object_id);
+       $object = spotEntity ('object', $_REQUEST['object_id']);
        if ($object['objtype_id'] != 8)
                return '';
        return count (getObjectPortsAndLinks ($_REQUEST['object_id'])) ? '' : 'attn';