Skip to content

Commit

Permalink
cj
Browse files Browse the repository at this point in the history
  • Loading branch information
nanthakumar5 committed Dec 29, 2022
1 parent 86d406b commit f99021d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/Helpers/custom_helper.php
Expand Up @@ -171,8 +171,7 @@ function filemove($file, $destination)

function filesource($file)
{
$source = base_url().'/'.$file;
return (file_exists($source)) ? $source : base_url().'/assets/images/noimage.jpg';
return (file_exists('./'.$file)) ? base_url().'/'.$file : base_url().'/assets/images/noimage.jpg';
}

function createDirectory($path)
Expand Down

0 comments on commit f99021d

Please sign in to comment.