Fix js error when custom sql query returns no results
This commit is contained in:
@@ -230,7 +230,7 @@ function buildTable(results, sortColumn, sortOrder) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!results.rows) {
|
||||
if (results.rows.length == 0) {
|
||||
$("<tr><td>No records found</tr></tr>").appendTo("#results");
|
||||
$("#results").addClass("empty");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user