diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-31 20:51:43 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-31 20:51:43 -0400 |
| commit | 328484bee7cab9ce354121413cc8d96c3e227aea (patch) | |
| tree | 7adf01c48cbe1970c159da182292b5c7ed48d958 /inc/mod/auth.php | |
| parent | 6bbe407e18681f2812db4345036bb5ae639f5973 (diff) | |
SQL cleanup
Diffstat (limited to 'inc/mod/auth.php')
| -rw-r--r-- | inc/mod/auth.php | 2 |
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; |
