Permalink
Browse files

Added isset check to tag parameter in blog/headlines

  • Loading branch information...
jbroadway committed Jul 31, 2012
1 parent abcd935 commit 4dcb12abfe85318c46ac24166edc61fe8105b044
Showing with 1 addition and 1 deletion.
  1. +1 −1 apps/blog/handlers/headlines.php
@@ -12,7 +12,7 @@
require_once ('apps/blog/lib/Filters.php');
$p = new blog\Post;
-if ($data['tag'] !== '') {
+if (isset ($data['tag']) && $data['tag'] !== '') {
$posts = $p->tagged ($data['tag']);
} else {
$posts = $p->headlines ();

0 comments on commit 4dcb12a

Please sign in to comment.