projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Lighter query to get the number of events displaid on every single page of
[platal.git]
/
plugins
/
insert.getNbIns.php
diff --git
a/plugins/insert.getNbIns.php
b/plugins/insert.getNbIns.php
index
5867a16
..
8cf3b2e
100644
(file)
--- a/
plugins/insert.getNbIns.php
+++ b/
plugins/insert.getNbIns.php
@@
-21,17
+21,18
@@
/*
* Smarty plugin
/*
* Smarty plugin
- * -------------------------------------------------------------
+ * -------------------------------------------------------------
* File: insert.getNbIns.php
* Type: insert
* Name: getNbIns
* File: insert.getNbIns.php
* Type: insert
* Name: getNbIns
- * Purpose:
+ * Purpose:
* -------------------------------------------------------------
*/
function smarty_insert_getNbIns($params, &$smarty)
{
* -------------------------------------------------------------
*/
function smarty_insert_getNbIns($params, &$smarty)
{
- $res = XDB::query("SELECT COUNT(
*
) FROM auth_user_md5 WHERE perms IN ('admin','user') AND deces=0");
+ $res = XDB::query("SELECT COUNT(
1
) FROM auth_user_md5 WHERE perms IN ('admin','user') AND deces=0");
$cnt = $res->fetchOneCell();
return number_format($cnt, 0, ",", ".");
}
$cnt = $res->fetchOneCell();
return number_format($cnt, 0, ",", ".");
}
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
?>
?>