We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40dc7bb commit 9cf2c4cCopy full SHA for 9cf2c4c
microblog/blog.php
@@ -25,9 +25,8 @@ function outputCategoryPage(){
25
function outputCategoryPosts(){
26
$values["category"] = htmlspecialchars($_GET["category"], ENT_QUOTES, 'UTF-8');
27
outputTemplate($values,"categoryfilter");
28
- foreach (DB::$obj as &$entry) {
29
-
30
- if(isset($entry[ID]) && (in_array($entry[ID],DB::$obj["categories"][$_GET["category"]]) || $_GET["category"]==="all") ){
+ foreach (DB::$obj as &$entry) {
+ if(isset($entry[ID]) && ( $_GET["category"]==="all" || in_array($entry[ID],DB::$obj["categories"][$_GET["category"]])) ){
31
$values["id"]=$entry[ID];
32
$values["title"]=$entry[TITLE];
33
$values["href"]=blogURL.blogParameterChar.PLS.'='.$entry[ID];
0 commit comments