added some error handler

This commit is contained in:
HB9HIL
2024-01-23 23:54:37 +01:00
parent a369e783c8
commit 3527f3fbb5
3 changed files with 6 additions and 1 deletions

View File

@@ -131,7 +131,11 @@ class OptionsLib {
$logo = $CI->Themes_model->get_logo_from_theme($theme, $logo_location);
return $logo;
if ($logo != null) {
return $logo;
} else {
return 'no_logo_found';
}
}
}

View File

@@ -64,6 +64,7 @@ class Themes_model extends CI_Model {
return ($value !== null) ? (string) $value : null;
} else {
log_message('error', 'get_logo_from_theme failed');
return null;
}
}