diff --git a/interface/web/monitor/datalog_list.php b/interface/web/monitor/datalog_list.php
index 3dc9f8673237982885eba077ade5167e28043cd2..4402b33136a5634d9e4c440a81c9e68a235979ec 100644
--- a/interface/web/monitor/datalog_list.php
+++ b/interface/web/monitor/datalog_list.php
@@ -49,8 +49,8 @@ $app->uses('listform_actions');
 $servers = $app->db->queryAllRecords("SELECT server_id, updated FROM server");
 
 $sql = '(';
-foreach($servers as $s) {
-	$sql .= " (datalog_id > ".$s['updated']." AND server_id = ".$s['server_id'].") OR ";
+foreach($servers as $sv) {
+	$sql .= " (datalog_id > ".$sv['updated']." AND server_id = ".$sv['server_id'].") OR ";
 }
 $sql = substr($sql,0,-4);
 $sql .= ')';