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); $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; return ($value !== null) ? (string) $value : null;
} else { } else {
log_message('error', 'get_logo_from_theme failed');
return null; return null;
} }
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB