Skip to content

Commit

Permalink
https://github.com/WWBN/AVideo/issues/5678#issuecomment-919201001
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielnetoDotCom committed Sep 14, 2021
1 parent 44bffab commit 8798ccc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions objects/video.php
Original file line number Diff line number Diff line change
Expand Up @@ -1472,11 +1472,12 @@ public static function getTotalVideos($status = "viewable", $showOnlyLoggedUserV
$sql .= " AND v.serie_playlists_id IS NOT NULL ";
}
}

if (!empty($_GET['catName'])) {
$catName = $global['mysqli']->real_escape_string($_GET['catName']);
$sql .= " AND c.clean_name = '{$catName}'";
$sql .= " AND (c.clean_name = '{$catName}' OR c.parentId IN (SELECT cs.id from categories cs where cs.clean_name = '{$catName}' ))";
}

if (!empty($_SESSION['type'])) {
if ($_SESSION['type'] == 'video') {
$sql .= " AND (v.type = 'video' OR v.type = 'embed' OR v.type = 'linkVideo')";
Expand Down

0 comments on commit 8798ccc

Please sign in to comment.