diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-09-27 20:51:26 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-09-27 20:51:26 +0000 |
commit | 4a0e498f52106b29d4adae0aaf7e1a6d55f8fd68 (patch) | |
tree | c3611570a31af3bce1042d62affa6a38c8678292 /modules/poll.module | |
parent | 6cde632962a461d2dc2acef0917b592823e123f8 (diff) | |
download | brdo-4a0e498f52106b29d4adae0aaf7e1a6d55f8fd68.tar.gz brdo-4a0e498f52106b29d4adae0aaf7e1a6d55f8fd68.tar.bz2 |
- a batch of updates, including some experimental changes to the moderation
of comments and nodes.
Diffstat (limited to 'modules/poll.module')
-rw-r--r-- | modules/poll.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/poll.module b/modules/poll.module index 579a43314..bd7d58f5a 100644 --- a/modules/poll.module +++ b/modules/poll.module @@ -78,7 +78,7 @@ function poll_search($keys) { global $PHP_SELF, $status; $result = db_query("SELECT n.*, p.* FROM poll p LEFT JOIN node n ON n.nid = p.nid AND n.lid = p.lid WHERE n.status = '$status[posted]' AND (n.title LIKE '%$keys%') LIMIT 20"); while ($poll = db_fetch_object($result)) { - $find[$i++] = array("title" => check_output($poll->title), "link" => ($PHP_SELF == "/admin.php" ? "admin.php?mod=poll&op=edit&id=$poll->nid" : "node.php?id=$poll->nid"), "user" => $poll->name, "date" => $poll->timestamp); + $find[$i++] = array("title" => check_output($poll->title), "link" => (strstr($PHP_SELF, "admin.php") ? "admin.php?mod=poll&op=edit&id=$poll->nid" : "node.php?id=$poll->nid"), "user" => $poll->name, "date" => $poll->timestamp); } return $find; } |