Fixed : Session to get playlist check
Fixed : get_comments
This commit is contained in:
parent
f2a10c0530
commit
536fab6098
2 changed files with 3 additions and 3 deletions
|
@ -547,9 +547,9 @@ class myquery {
|
|||
if(!$count_only)
|
||||
{
|
||||
//Fetching comments by registered users
|
||||
$result = $db->select(tbl("comments,users"),"*"," type='$type' $typeid_query AND comments.userid = users.userid $cond");
|
||||
$result = $db->select(tbl("comments,users"),"*"," type='$type' $typeid_query AND ".tbl("comments.userid")." = ".tbl("users.userid")." $cond");
|
||||
//Fetchign comments by anonymous users
|
||||
$result_anonym = $db->select(tbl("comments"),"*"," type='$type' $typeid_query AND comments.userid = '0' $cond");
|
||||
$result_anonym = $db->select(tbl("comments"),"*"," type='$type' $typeid_query AND ".tbl("comments.userid")." = '0' $cond");
|
||||
//Mergin both arrays
|
||||
if(is_array($result) && is_array($result_anonym))
|
||||
$result = array_merge($result,$result_anonym);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{assign var=playlist value=$cbvid->action->get_playlist($smarty.session.cur_playlist)}
|
||||
{assign var=playlist value=$cbvid->action->get_playlist($smarty.get.play_list)}
|
||||
|
||||
{if $playlist}
|
||||
<span class="watch_vids_head" onclick='$(this).toggleClass("watch_vids_head_closed");$("#my_playlist").slideToggle("fast")'>Playlist : {$playlist.playlist_name}</span>
|
||||
|
|
Loading…
Add table
Reference in a new issue