...
This commit is contained in:
parent
e507119e17
commit
0191327651
@ -90,10 +90,7 @@
|
|||||||
$query->execute() or error(db_error($query));
|
$query->execute() or error(db_error($query));
|
||||||
|
|
||||||
if($pm = $query->fetch()) {
|
if($pm = $query->fetch()) {
|
||||||
return 'You have <a href="?/PM/' . $pm['id'] . '">an unread PM</a>' .
|
return Array('id' => $pm['id'], 'waiting' => $query->rowCount() - 1);
|
||||||
($query->rowCount() > 1 ?
|
|
||||||
', plus ' . ($query->rowCount()-1) . ' more waiting'
|
|
||||||
: '') . '.';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user