summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-06-30 07:59:18 +0000
committerDries Buytaert <dries@buytaert.net>2001-06-30 07:59:18 +0000
commitf70002b78f085ddbb5a24c7e4bbe7104087d5b21 (patch)
tree53b1ea9e0681e31d1dacb54309debd26a2b8e354
parentf56e7453500f69408ee479d00eaefacd185b52d3 (diff)
downloadbrdo-f70002b78f085ddbb5a24c7e4bbe7104087d5b21.tar.gz
brdo-f70002b78f085ddbb5a24c7e4bbe7104087d5b21.tar.bz2
- Fixed typo.
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 25f02b1e7..63538dec7 100644
--- a/index.php
+++ b/index.php
@@ -7,7 +7,7 @@ page_header();
$theme->header();
-if (user_access("view content")) {
+if (user_access("access content")) {
$result = db_query("SELECT nid, type FROM node WHERE ". ($meta ? "attributes LIKE '%". check_input($meta) ."%' AND " : "") ." promote = '1' AND status = '". node_status("posted") ."' AND timestamp <= '". ($date > 0 ? check_input($date) : time()) ."' ORDER BY timestamp DESC LIMIT ". ($user->nodes ? $user->nodes : variable_get(default_nodes_main, 10)));
while ($node = db_fetch_object($result)) {
node_view(node_get_object(array("nid" => $node->nid, "type" => $node->type)), 1);