1) { if ($showPhoto[1] != '') { if (file_exists('../' . $showPhoto[1])) { $showPhoto = '../' . $showPhoto[1]; $orgPath = $showPhoto; $coverPath = img_path($showPhoto, 'detail'); if (file_exists($coverPath)) { $showPhoto = $coverPath; } } } } ?>