summaryrefslogtreecommitdiff
path: root/modules/queue.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-07-12 22:21:55 +0000
committerDries Buytaert <dries@buytaert.net>2003-07-12 22:21:55 +0000
commit22b6d2f30cb1d5a0e7b4f1385ddba79e59dc0b34 (patch)
tree68745484c801b5b3155f8ac068140a0a74f0d558 /modules/queue.module
parentd5cdbcd6444e9d36db64c1f80a70611f779ede94 (diff)
downloadbrdo-22b6d2f30cb1d5a0e7b4f1385ddba79e59dc0b34.tar.gz
brdo-22b6d2f30cb1d5a0e7b4f1385ddba79e59dc0b34.tar.bz2
- Performance improvement: changed a fair amount of "left joins" to "inner
joins". Patch by Gerhard.
Diffstat (limited to 'modules/queue.module')
-rw-r--r--modules/queue.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/queue.module b/modules/queue.module
index ec333594e..6617cbb18 100644
--- a/modules/queue.module
+++ b/modules/queue.module
@@ -88,7 +88,7 @@ function queue_vote($node, $vote) {
function queue_overview() {
global $user;
- $result = db_query("SELECT n.*, u.name, u.uid FROM {node} n LEFT JOIN {users} u ON n.uid = u.uid WHERE n.moderate = 1");
+ $result = db_query("SELECT n.*, u.name, u.uid FROM {node} n INNER JOIN {users} u ON n.uid = u.uid WHERE n.moderate = 1");
$output .= "<table border=\"0\" cellspacing=\"4\" cellpadding=\"4\">";
$output .= " <tr><th>". t("Subject") ."</th><th>". t("Author") ."</th><th>". t("Type") ."</th><th>". t("Score") ."</th></tr>";