summaryrefslogtreecommitdiff
path: root/inc/mod/auth.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-07-31 20:51:43 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-07-31 20:51:43 -0400
commit328484bee7cab9ce354121413cc8d96c3e227aea (patch)
tree7adf01c48cbe1970c159da182292b5c7ed48d958 /inc/mod/auth.php
parent6bbe407e18681f2812db4345036bb5ae639f5973 (diff)
SQL cleanup
Diffstat (limited to 'inc/mod/auth.php')
-rw-r--r--inc/mod/auth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/mod/auth.php b/inc/mod/auth.php
index 1bc27dff..a0986a1f 100644
--- a/inc/mod/auth.php
+++ b/inc/mod/auth.php
@@ -147,7 +147,7 @@ function create_pm_header() {
$query->bindValue(':id', $mod['id'], PDO::PARAM_INT);
$query->execute() or error(db_error($query));
- if ($pm = $query->fetch())
+ if ($pm = $query->fetch(PDO::FETCH_ASSOC))
$header = array('id' => $pm['id'], 'waiting' => $query->rowCount() - 1);
else
$header = true;