From 01913276514763d05279e3bb4eed323f7b5a42a9 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Wed, 5 Oct 2011 19:41:47 +1100 Subject: [PATCH] ... --- inc/mod.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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;