fixed hidden caches stats on myhome page

This commit is contained in:
following
2013-04-28 23:06:59 +02:00
parent a3ea98874c
commit 788633bc88

View File

@ -22,6 +22,9 @@
$rUser = sql_fetch_array($rsUser);
sql_free_result($rsUser);
$tpl->assign('found', $rUser['found']);
// locked/hidden caches are visible for the user and must be added to public stats
$rUser['hidden'] += sql_value("SELECT COUNT(*) FROM `caches` WHERE `user_id`='&1' AND `status`=7", 0, $login->userid);
$tpl->assign('hidden', $rUser['hidden']);
//get last logs