Fixed : User background delete from admin panel
This commit is contained in:
parent
dedcd4e3c4
commit
9f444d4274
1 changed files with 4 additions and 3 deletions
|
@ -2362,9 +2362,10 @@ class userquery extends CBCategory{
|
|||
//Deleting User Bg
|
||||
if($array['delete_bg']=='yes')
|
||||
{
|
||||
$file = USER_THUMBS_DIR.'/'.$array['bg_file_name'];
|
||||
if(file_exists($file) && $array['bg_file_name'] !='')
|
||||
unlink($file);
|
||||
|
||||
$file = USER_BG_DIR.'/'.$array['bg_file_name'];
|
||||
if(file_exists($file) && $array['bg_file_name'])
|
||||
unlink($file);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue