diff --git a/web/ajax/status.php b/web/ajax/status.php index 3821ac9ce..2a2c89d3e 100644 --- a/web/ajax/status.php +++ b/web/ajax/status.php @@ -257,7 +257,7 @@ function collectData() { } # end foreach element if ( count($fieldSql) ) { - $sql = 'SELECT '.join(', ', array_map($fieldSql, function($f){return '`'.$f.''''})).' FROM '.$entitySpec['table']; + $sql = 'SELECT '.join(', ', array_map($fieldSql, function($f){return '`'.$f.'`';})).' FROM '.$entitySpec['table']; if ( $joinSql ) $sql .= ' '.join(' ', array_unique($joinSql)); if ( $id && !empty($entitySpec['selector']) ) {