diff options
Diffstat (limited to 'pages/quotes.php')
-rwxr-xr-x | pages/quotes.php | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/pages/quotes.php b/pages/quotes.php index 4d0b46e..f1e0d65 100755 --- a/pages/quotes.php +++ b/pages/quotes.php | |||
@@ -168,11 +168,19 @@ if (isset($_GET['id']) && !(is_numeric($_GET['id']))) | |||
168 | } | 168 | } |
169 | } else if (is_numeric($_GET['act'])) | 169 | } else if (is_numeric($_GET['act'])) |
170 | { | 170 | { |
171 | $query = "SELECT * FROM rash_quotes WHERE id = " . $_GET['act']; | 171 | $getquote = "SELECT * FROM rash_quotes WHERE id = " . $_GET['act']; |
172 | quote_generation($query, "#" . $_GET['act'], -1); | 172 | $getquote2 = mysql_query($getquote); |
173 | $getquote3 = mysql_fetch_array($getquote2); | ||
173 | 174 | ||
174 | $page_id = 'quote-' . $_GET['act']; | 175 | if ($getquote3['id'] == $_GET['act']) |
175 | include('includes/comments.php'); | 176 | { |
177 | quote_generation($getquote, "#" . $_GET['act'], -1); | ||
178 | |||
179 | $page_id = 'quote-' . $_GET['act']; | ||
180 | include('includes/comments.php'); | ||
181 | } else { | ||
182 | generateError('404'); | ||
183 | } | ||
176 | } else { | 184 | } else { |
177 | generateError('404'); | 185 | generateError('404'); |
178 | } | 186 | } |