Update function for user
This commit is contained in:
parent
c8c412539c
commit
1acb272eb6
3 changed files with 10 additions and 13 deletions
|
@ -151,9 +151,10 @@ class language
|
|||
if(empty($lang_code))
|
||||
$lang_code = $this->lang;
|
||||
|
||||
$results = $db->select(tbl("phrases"),"COUNT(id)"," lang_iso = '".$lang_code."' $extra_param");
|
||||
$results = $db->select(tbl("phrases"),"COUNT(id) as total"," lang_iso = '".$lang_code."' $extra_param");
|
||||
//print_r($results);
|
||||
if($db->num_rows>0)
|
||||
return $results[0][0];
|
||||
return $results[0]['total'];
|
||||
else
|
||||
return 0;
|
||||
|
||||
|
|
|
@ -706,7 +706,7 @@ class CBPhotos
|
|||
return $cond;
|
||||
}
|
||||
|
||||
/**
|
||||
/***
|
||||
* Used to construct Exclude Query
|
||||
function exclude_query($array)
|
||||
{
|
||||
|
@ -2766,4 +2766,4 @@ class CBPhotos
|
|||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
|
@ -333,8 +333,6 @@ class CBvideo extends CBCategory
|
|||
*/
|
||||
function update_video($array=NULL)
|
||||
{
|
||||
|
||||
//print_r($array);
|
||||
global $eh,$Cbucket,$db,$Upload;
|
||||
|
||||
$Upload->validate_video_upload_form(NULL,TRUE);
|
||||
|
@ -371,6 +369,7 @@ class CBvideo extends CBCategory
|
|||
|
||||
if(!$array)
|
||||
$array = $_POST;
|
||||
|
||||
$vid = $array['videoid'];
|
||||
|
||||
if(is_array($_FILES))
|
||||
|
@ -628,7 +627,7 @@ class CBvideo extends CBCategory
|
|||
$cond = "";
|
||||
$superCond = "";
|
||||
if( !has_access('admin_access',TRUE) )
|
||||
$superCond = $cond .= " ".("video.status")."='Successful' AND
|
||||
$superCond = " ".("video.status")."='Successful' AND
|
||||
".("video.active")."='yes' AND ".("video.broadcast")." !='unlisted' ";
|
||||
else
|
||||
{
|
||||
|
@ -921,15 +920,12 @@ class CBvideo extends CBCategory
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$fields = array(
|
||||
'video' => get_video_fields(),
|
||||
//'users' => get_user_fields(array('add' =>'name' , 'remove' => 'featured' ))
|
||||
'users' => array_diff(get_user_fields(), array('featured'))
|
||||
'users' => get_user_fields()
|
||||
);
|
||||
|
||||
//pr($fields,ture);
|
||||
|
||||
$fields = tbl_fields( $fields );
|
||||
|
||||
if(!$params['count_only'] && !$params['show_related'])
|
||||
|
@ -1370,7 +1366,7 @@ class CBvideo extends CBCategory
|
|||
{
|
||||
if(!empty($link['title']) && !empty($link['link']))
|
||||
{
|
||||
return '<li><a role="menuitem" tabindex="-1" href="'.$link['link'].'">'.$link['title'].'</a></li>';
|
||||
return '<a href="'.$link['link'].'">'.$link['title'].'</a>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue