summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/user.module2
-rw-r--r--modules/user/user.module2
-rw-r--r--update.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/modules/user.module b/modules/user.module
index 5bde04273..b12bc2b2f 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -484,7 +484,7 @@ function user_block() {
// Who's online block
$time = 60 * 60; // minutes * seconds
- $limit = 0; // List the X most recent people
+ $limit = 5; // List the X most recent people
$result = db_query("SELECT uid, name FROM users WHERE timestamp > unix_timestamp() - ($time) ORDER BY timestamp DESC LIMIT $limit");
diff --git a/modules/user/user.module b/modules/user/user.module
index 5bde04273..b12bc2b2f 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -484,7 +484,7 @@ function user_block() {
// Who's online block
$time = 60 * 60; // minutes * seconds
- $limit = 0; // List the X most recent people
+ $limit = 5; // List the X most recent people
$result = db_query("SELECT uid, name FROM users WHERE timestamp > unix_timestamp() - ($time) ORDER BY timestamp DESC LIMIT $limit");
diff --git a/update.php b/update.php
index 9a22969c1..fd7ce3ccc 100644
--- a/update.php
+++ b/update.php
@@ -334,7 +334,7 @@ function update_22() {
}
function update_23() {
- update_sql("CREATE TABLE search_index (word varchar(50) default NULL, lno int(10) unsigned default NULL, type varchar(16) default NULL, count int(10) unsigned default NULL, KEY lno (lno), KEY word (word);");
+ update_sql("CREATE TABLE search_index (word varchar(50) default NULL, lno int(10) unsigned default NULL, type varchar(16) default NULL, count int(10) unsigned default NULL, KEY lno (lno), KEY word (word));");
}
/*