Fix else part of if statement

This commit is contained in:
phl0
2025-05-07 11:17:57 +02:00
parent 866380b2e3
commit c1ce89633d

View File

@@ -59,8 +59,8 @@ class Clublog_model extends CI_Model
if ($this->config->item('directory') != "") {
$filepath = $_SERVER['DOCUMENT_ROOT'] . "/" . $this->config->item('directory') . "/" . $file_info['server_path'];
} else {
$filepath = $_SERVER['DOCUMENT_ROOT'] . "/" . $file_info['server_path'];
}
$filepath = $_SERVER['DOCUMENT_ROOT'] . "/" . $file_info['server_path'];
// Check if the file actually exists
if (!file_exists($filepath)) {