Skip to content

Commit

Permalink
video pagination fix
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel authored and daniel committed May 14, 2019
1 parent 3b174dc commit f574849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objects/video.php
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ static function getTotalVideos($status = "viewable", $showOnlyLoggedUserVideos =
if ($status == "viewable") {
$sql .= " AND v.status IN ('" . implode("','", Video::getViewableStatus($showUnlisted)) . "')";
} elseif (!empty($status)) {
$sql .= " AND status = '{$status}'";
$sql .= " AND v.status = '{$status}'";
}
if ($showOnlyLoggedUserVideos === true && !User::isAdmin()) {
$sql .= " AND v.users_id = '" . User::getId() . "'";
Expand Down

0 comments on commit f574849

Please sign in to comment.