Skip to content
Snippets Groups Projects
Commit a102b175 authored by Gerrit Uitslag's avatar Gerrit Uitslag
Browse files

Use zero when getUserCount is unsupported. Fixes FS#2353

parent 9c438d6c
No related branches found
No related tags found
No related merge requests found
......@@ -153,7 +153,12 @@ class admin_plugin_usermanager extends DokuWiki_Admin_Plugin {
if ($this->_user_total > 0) {
ptln("<p>".sprintf($this->lang['summary'],$this->_start+1,$this->_last,$this->_user_total,$this->_auth->getUserCount())."</p>");
} else {
ptln("<p>".sprintf($this->lang['nonefound'],$this->_auth->getUserCount())."</p>");
if($this->_user_total < 0) {
$allUserTotal = 0;
} else {
$allUserTotal = $this->_auth->getUserCount();
}
ptln("<p>".sprintf($this->lang['nonefound'], $allUserTotal)."</p>");
}
ptln("<form action=\"".wl($ID)."\" method=\"post\">");
formSecurityToken();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment