mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Fixed an error in the order of the parameters of a function
This commit is contained in:
parent
02791bc7c8
commit
9644a91b67
@ -36,11 +36,10 @@ if ($searchGraphs) {
|
|||||||
$filter['id_graph'] = $usergraphs_id;
|
$filter['id_graph'] = $usergraphs_id;
|
||||||
|
|
||||||
$columns = array('id_graph', 'name', 'description');
|
$columns = array('id_graph', 'name', 'description');
|
||||||
$count_columns = array('COUNT(id_graph) AS count');
|
|
||||||
|
|
||||||
$totalGraphs = db_get_value_filter('tgraph', $filter, $count_columns);
|
$totalGraphs = (int) db_get_value_filter('COUNT(id_graph) AS count', 'tgraph', $filter);
|
||||||
|
|
||||||
if (! $only_count && (int)$totalGraphs > 0) {
|
if (! $only_count && $totalGraphs > 0) {
|
||||||
$filter['limit'] = $config['block_size'];
|
$filter['limit'] = $config['block_size'];
|
||||||
$filter['offset'] = (int) get_parameter('offset');
|
$filter['offset'] = (int) get_parameter('offset');
|
||||||
$graphs = db_get_all_rows_filter('tgraph', $filter, $columns);
|
$graphs = db_get_all_rows_filter('tgraph', $filter, $columns);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user