diff options
author | uckelman <uckelman@nomic.net> | 2010-04-11 15:12:00 +0000 |
---|---|---|
committer | uckelman <uckelman@nomic.net> | 2010-04-11 15:12:00 +0000 |
commit | 4efb26e1be5a40537420734d3a7681f42cc47bd4 (patch) | |
tree | 8de151efcc3fc9e0f1ce22839c201401f32c91e5 | |
parent | 6e40453542d82944122a71a050254c646b77aaaf (diff) |
Cleanup.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6652 67b53d14-2c14-4ace-a08f-0dab2b34000c
-rw-r--r-- | src/PhpBB3.php | 8 |
1 files changed, 4 insertions, 4 deletions
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; |