From 0076da9c6c311a49f9315d40098b4b338dc16469 Mon Sep 17 00:00:00 2001 From: Daniel Neto Date: Wed, 18 Oct 2023 16:00:17 -0300 Subject: [PATCH] https://github.com/WWBN/AVideo/issues/8527 --- objects/video.php | 4 +++- view/managerVideosOrganize.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/objects/video.php b/objects/video.php index aeeab04b9f..7a8487cd94 100644 --- a/objects/video.php +++ b/objects/video.php @@ -2326,7 +2326,9 @@ if (!class_exists('Video')) { if ($suggestedOnly) { $sql .= " AND v.isSuggested = 1 AND v.status = '" . self::$statusActive . "' "; $sql .= " ORDER BY RAND() "; - } else { + } else if ($with_order_only) { + $sql .= " ORDER BY v.`order` ASC "; + }else { $sql .= " ORDER BY v.created DESC "; } if (strpos(mb_strtolower($sql), 'limit') === false) { diff --git a/view/managerVideosOrganize.php b/view/managerVideosOrganize.php index 8325ca3823..1c5efb1cf3 100644 --- a/view/managerVideosOrganize.php +++ b/view/managerVideosOrganize.php @@ -10,7 +10,7 @@ if (!Permissions::canAdminVideos()) { $videos = array(); setRowCount(100); -$row = Video::getAllVideosLight("viewable", false, true, false, '', 0, true); +$row = Video::getAllVideosLight("", false, true, false, '', 0, true); foreach ($row as $key => $value) { $videos[] = array('videos_id' => $value['id'], 'title' => $value['title'], 'order' => $value['order']); }