Index: html/includes/print/syslogs.inc.php
===================================================================
--- html/includes/print/syslogs.inc.php	(revision 4738)
+++ html/includes/print/syslogs.inc.php	(working copy)
@@ -38,7 +38,16 @@
   $start = $pagesize * $pageno - $pagesize;
 
   $priorities = $GLOBALS['config']['syslog']['priorities'];
-
+  $priorities_sql = array(
+	'0' => 'emerg',
+	'1' => 'alert',
+	'2' => 'crit',
+	'3' => 'err',
+	'4' => 'warning',
+	'5' => 'notice',
+	'6' => 'info',
+	'7' => 'debug'
+	);
   $param = array();
   $where = ' WHERE 1 ';
   foreach ($vars as $var => $value)
@@ -53,6 +62,12 @@
           $param[] = $value;
           break;
         case 'priority':
+		$tmp_pr = array();
+		foreach ($value as $tmp_k => $tmp_v) {
+			$tmp_pr[] = $priorities_sql[$tmp_v];
+		}
+		$where .= " AND `priority` in ('".implode("','",$tmp_pr)."') ";
+	  break;
         case 'program':
           if (!is_array($value)) { $value = array($value); }
           $where .= ' AND (';