]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix register.php feed output
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 9 Nov 2011 14:28:54 +0000 (18:28 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 9 Nov 2011 14:28:54 +0000 (18:28 +0400)
register.php

index 3198095a59b795b5deea550d5e3fc99c9be27490..9fd75ffc51f6e41c0140eb9757d28eaed018620b 100644 (file)
@@ -30,7 +30,7 @@
                        $result = db_query($link, "SELECT COUNT(*) AS cu FROM ttrss_users");
                        $num_users = db_fetch_result($result, 0, "cu");
 
-                       $num_users -= REG_MAX_USERS;
+                       $num_users = REG_MAX_USERS - $num_users;
                        if ($num_users < 0) $num_users = 0;
                        $reg_suffix = "enabled";
                } else {