diff --git a/html/pages/search.inc.php b/html/pages/search.inc.php
index 6c480ebc7e..65dd16ea5a 100644
--- a/html/pages/search.inc.php
+++ b/html/pages/search.inc.php
@@ -42,7 +42,7 @@ foreach ($sections as $type => $texttype) {
 
 unset($sep);
 
-print_optionbar_end('', '');
+print_optionbar_end();
 
 if (file_exists('pages/search/'.$vars['search'].'.inc.php')) {
     include 'pages/search/'.$vars['search'].'.inc.php';
diff --git a/includes/common.php b/includes/common.php
index 040e846344..f2dff25f64 100644
--- a/includes/common.php
+++ b/includes/common.php
@@ -197,7 +197,7 @@ function get_port_by_ifIndex($device_id, $ifIndex)
     return dbFetchRow("SELECT * FROM `ports` WHERE `device_id` = ? AND `ifIndex` = ?", array($device_id, $ifIndex));
 }
 
-function get_all_devices($device, $type = "")
+function get_all_devices()
 {
     global $cache;
     $devices = array();