Skip to content

Commit

Permalink
QA: SQL Error when checkhing 'Has Graphs'
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWitness committed Nov 7, 2024
1 parent 0963749 commit 28117ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aggregate_templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ function aggregate_template() {
}

if (get_request_var('has_graphs') == 'true') {
$sql_where .= ($sql_where != '' ? ' AND ' : 'WHERE ') . 'graphs > 0';
$sql_where .= ($sql_where != '' ? ' AND ' : 'WHERE ') . 'gt.graphs > 0';
}

$total_rows = db_fetch_cell("SELECT COUNT(*)
Expand Down

0 comments on commit 28117ea

Please sign in to comment.