diff --git a/inc/mod.php b/inc/mod.php index e36bd92a..6d4e0bdc 100644 --- a/inc/mod.php +++ b/inc/mod.php @@ -90,10 +90,7 @@ $query->execute() or error(db_error($query)); if($pm = $query->fetch()) { - return 'You have an unread PM' . - ($query->rowCount() > 1 ? - ', plus ' . ($query->rowCount()-1) . ' more waiting' - : '') . '.'; + return Array('id' => $pm['id'], 'waiting' => $query->rowCount() - 1); } return false;