diff --git a/sections/collages/new.php b/sections/collages/new.php
index fb25845a..8d30438e 100644
--- a/sections/collages/new.php
+++ b/sections/collages/new.php
@@ -58,7 +58,7 @@
Charts - A collage containing all the releases that comprise a certain chart (Billboard Top 100, Pitchfork Top 100, What.cd Top 10 for a certain week)
if(($CollageCount < $LoggedUser['Permissions']['MaxCollages']) && check_perms('site_collages_personal')) { ?>
- Personal - You can put whatever your want here. It's your personal collage.
+ Personal - You can put whatever you want here. It's your personal collage.
} ?>
diff --git a/sections/requests/index.php b/sections/requests/index.php
index aaadd524..70adeecf 100644
--- a/sections/requests/index.php
+++ b/sections/requests/index.php
@@ -161,7 +161,7 @@
$DB->query("SELECT DISTINCT
RequestID,
CEIL((SELECT COUNT(rc1.ID) FROM requests_comments AS rc1 WHERE rc1.RequestID=rc.RequestID)/".TORRENT_COMMENTS_PER_PAGE.") AS Pages,
- CEIL((SELECT COUNT(rc2.ID) FROM requests_comments AS rc2 WHERE rc2.ID<'".db_string($_GET['postid'])."')/".TORRENT_COMMENTS_PER_PAGE.") AS Page
+ CEIL((SELECT COUNT(rc2.ID) FROM requests_comments AS rc2 WHERE rc2.ID<='".db_string($_GET['postid'])."')/".TORRENT_COMMENTS_PER_PAGE.") AS Page
FROM requests_comments AS rc
WHERE rc.RequestID=(SELECT RequestID FROM requests_comments WHERE ID='".db_string($_GET['postid'])."')");
list($RequestID,$Pages,$Page)=$DB->next_record();
@@ -175,7 +175,7 @@
//We need to clear all subsequential catalogues as they've all been bumped with the absence of this post
$ThisCatalogue = floor((TORRENT_COMMENTS_PER_PAGE*$Page-TORRENT_COMMENTS_PER_PAGE)/THREAD_CATALOGUE);
$LastCatalogue = floor((TORRENT_COMMENTS_PER_PAGE*$Pages-TORRENT_COMMENTS_PER_PAGE)/THREAD_CATALOGUE);
- for($i=$ThisCatalogue;$i<=$LastCatalogue;$i++) {
+ for($i = $ThisCatalogue; $i <= $LastCatalogue; $i++) {
$Cache->delete('request_comments_'.$RequestID.'_catalogue_'.$i);
}
diff --git a/sections/requests/new_edit.php b/sections/requests/new_edit.php
index 34b1f3a1..3628fa92 100644
--- a/sections/requests/new_edit.php
+++ b/sections/requests/new_edit.php
@@ -80,8 +80,9 @@
if($MediaList == "Any") {
$MediaArray = array_keys($Media);
} else {
+ $MediaTemp = explode('|', $MediaList);
foreach ($Media as $Key => $Val) {
- if(strpos($MediaList, $Val) !== false) {
+ if(in_array($Val, $MediaTemp)) {
$MediaArray[] = $Key;
}
}