search bug fix

This commit is contained in:
Hamid Reza Mohammadi 2025-03-16 10:30:19 +03:30
parent 1038a2e0da
commit 6f4c14f256

View File

@ -212,7 +212,7 @@ namespace GanjooRazor.Pages
}
PoetId = string.IsNullOrEmpty(Request.Query["author"]) ? 0 : int.Parse(Request.Query["author"]);
CatId = string.IsNullOrEmpty(Request.Query["cat"]) ? 0 : int.Parse(Request.Query["cat"]);
CatId = PoetId == 0 ? 0 : string.IsNullOrEmpty(Request.Query["cat"]) ? 0 : int.Parse(Request.Query["cat"]);
if (CatId != 0)