diff --git a/html/ajax_search.php b/html/ajax_search.php
index fd6675682..e9ddad36f 100644
--- a/html/ajax_search.php
+++ b/html/ajax_search.php
@@ -15,6 +15,7 @@ if (!$_SESSION['authenticated']) {
$device = array();
$ports = array();
+$bgp = array();
if (isset($_REQUEST['search'])) {
$search = mres($_REQUEST['search']);