Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Dec 10, 2024
1 parent 07cd60c commit 774f1a4
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 @@ -1464,7 +1464,7 @@ public static function getVideo($id = "", $status = Video::SORT_TYPE_VIEWABLE, $
}
}
if (strpos($sql, 'v.id IN') === false && !preg_match('/LIMIT\s+\d+/i', preg_replace('/\([^\)]*\)/', '', $sql))) {
$sql .= " LIMIT {$firstClauseLimit}1";
$sql .= " LIMIT {$firstClauseLimit}1 -- added firstClauseLimit ";
}
$lastGetVideoSQL = $sql;
//echo $sql, "<br>";//var_dump(debug_backtrace());exit;
Expand Down

0 comments on commit 774f1a4

Please sign in to comment.