From 23ec039bda0377d57b7793daa132e4dc57081737 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 23 Aug 2005 20:38:46 +0000 Subject: [PATCH] * Fix table prefix usage in Block::enumBlocks --- RELEASE-NOTES | 1 + includes/Block.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 9a6c466d2a..5e36481c1a 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -48,6 +48,7 @@ Misc work going on..... * Move ArticleSave hook execution into Article insert/update functions, so they get called on non-EditPage actions that use these functions to create or update pages. +* Fix table prefix usage in Block::enumBlocks === Caveats === diff --git a/includes/Block.php b/includes/Block.php index 84b24752c6..721b1f7fa3 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -206,7 +206,7 @@ class Block extract( $db->tableNames( 'ipblocks', 'user' ) ); - $sql = "SELECT ipblocks.*,user_name FROM $ipblocks,$user " . + $sql = "SELECT $ipblocks.*,user_name FROM $ipblocks,$user " . "WHERE user_id=ipb_by $cond ORDER BY ipb_timestamp DESC $options"; $res = $db->query( $sql, 'Block::enumBans' ); $num_rows = $db->numRows( $res ); -- 2.20.1