user warning: Query was empty query: in /var/www/dp6/sites/unitedua.com/modules/privatemsg/privatemsg.module on line 357.
simple quick fix, without serch any causes
function privatemsg_unread_count($account = NULL) {
static $counts = array();
privatemsg_setup_includes();
if (!$account || $account->uid == 0) {
global $user;
$account = $user;
}
if ( !isset($counts[$account->uid])) {
$query = _privatemsg_assemble_query('privatemsg_unread_count', $account);
$counts[$account->uid] = !empty($query['query']) ? db_result(db_query($query['query'])) : 0;
}
return $counts[$account->uid];
}
Comments
Comment #1
berdir- Did you had any other others on the same page ?
- Did it occur always or just on special sites?
- Maybe a conflict with other modules, what modules do you have installed ?
I can't really image what should cause this error, _privatemsg_assemble_query should always return a query.
Comment #2
berdirI'm going to set this to fixed, as there was no feedback and the privatemsg_assemble_query changed, this should not happen without an additional message now.