aboutsummaryrefslogtreecommitdiffstats
path: root/admin/images
diff options
context:
space:
mode:
Diffstat (limited to 'admin/images')
-rw-r--r--admin/images/global_stats.img.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/images/global_stats.img.php b/admin/images/global_stats.img.php
index f1154ff18..3118ff66f 100644
--- a/admin/images/global_stats.img.php
+++ b/admin/images/global_stats.img.php
@@ -37,7 +37,7 @@ $legend = $lang['stats_global_graph_title'];
$imageHeight = 256;
$imageWidth = 320;
$sql = "SELECT DISTINCT COUNT(*), MONTH(date)
- FROM phpwg_history
+ FROM ".HISTORY_TABLE."
WHERE (date > DATE_SUB(CURRENT_DATE(), INTERVAL 12 MONTH))
GROUP BY DATE_FORMAT(date,'%Y-%m') DESC;";