Home page ajax get videos changed to count only
This commit is contained in:
parent
58518b206a
commit
24fd0882de
1 changed files with 3 additions and 1 deletions
|
@ -41,8 +41,10 @@
|
|||
|
||||
if ($load_type == 'count') {
|
||||
$arr = array();
|
||||
$params['count_only'] = true;
|
||||
$shown = $load_limit * ($cur_load_hit - 1);
|
||||
$videos = get_videos($params);
|
||||
$vcount = count($videos);
|
||||
$vcount = $videos - $shown;
|
||||
if ($vcount < 1) {
|
||||
$arr['more_vids'] = "none";
|
||||
echo json_encode($arr);
|
||||
|
|
Loading…
Add table
Reference in a new issue