From 4efb26e1be5a40537420734d3a7681f42cc47bd4 Mon Sep 17 00:00:00 2001 From: uckelman Date: Sun, 11 Apr 2010 15:12:00 +0000 Subject: Cleanup. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6652 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/PhpBB3.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/PhpBB3.php') diff --git a/src/PhpBB3.php b/src/PhpBB3.php index 51d4bbe..b12841f 100644 --- a/src/PhpBB3.php +++ b/src/PhpBB3.php @@ -15,8 +15,8 @@ class PhpBB3 { public function getUserId($from) { global $db; - $sql = 'SELECT user_id FROM ' . USERS_TABLE . - ' WHERE user_email = "' . $db->sql_escape($from) . '"'; + $sql = 'SELECT user_id FROM ' . USERS_TABLE . ' ' . + 'WHERE user_email = "' . $db->sql_escape($from) . '"'; $row = $this->get_exactly_one_row($sql); return $row['user_id']; @@ -41,8 +41,8 @@ class PhpBB3 { public function getTopicAndForumIds($post_id) { global $db; - $sql = 'SELECT topic_id, forum_id FROM ' . POSTS_TABLE . - ' WHERE post_id = "' . $db->sql_escape($post_id) . '"'; + $sql = 'SELECT topic_id, forum_id FROM ' . POSTS_TABLE . ' ' . + 'WHERE post_id = "' . $db->sql_escape($post_id) . '"'; $row = $this->get_exactly_one_row($sql); return $row; -- cgit v1.2.3