summaryrefslogtreecommitdiff
path: root/src/Controllers/Metrics/Stats.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Controllers/Metrics/Stats.php')
-rw-r--r--src/Controllers/Metrics/Stats.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Controllers/Metrics/Stats.php b/src/Controllers/Metrics/Stats.php
index 2d58f999..f1ef247b 100644
--- a/src/Controllers/Metrics/Stats.php
+++ b/src/Controllers/Metrics/Stats.php
@@ -226,13 +226,13 @@ class Stats
public function questions($answered = null)
{
$query = $this
- ->getQuery('Questions');
+ ->getQuery('questions');
if (!is_null($answered)) {
if ($answered) {
- $query->whereNotNull('AID');
+ $query->whereNotNull('answerer_id');
} else {
- $query->whereNull('AID');
+ $query->whereNull('answerer_id');
}
}