From a48bd21aa735e1c865645d3e6e91f18b9c1739c5 Mon Sep 17 00:00:00 2001 From: Blober Date: Tue, 30 May 2017 11:05:38 +0200 Subject: [PATCH] [Fix] Empty logo || Header Image || Background Prevent db config lines to disapear if their is no uploaded images. --- controllers/admin.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/controllers/admin.php b/controllers/admin.php index 65f017c..8b05fe5 100644 --- a/controllers/admin.php +++ b/controllers/admin.php @@ -316,7 +316,7 @@ public function index($theme) } else { - $this->db->where('name', 'dungeon_header')->delete('nf_settings'); + $this->config('dungeon_header', '0', 'int'); } if ($post['logo']) @@ -325,7 +325,7 @@ public function index($theme) } else { - $this->db->where('name', 'dungeon_logo')->delete('nf_settings'); + $this->config('dungeon_logo', '0', 'int'); } $this ->config('dungeon_header_repeat', $post['repeat']) @@ -345,7 +345,7 @@ public function index($theme) } else { - $this->db->where('name', 'dungeon_background')->delete('nf_settings'); + $this->config('dungeon_background', '0', 'int'); } $this ->config('dungeon_background_repeat', $post['repeat']) @@ -412,4 +412,4 @@ public function index($theme) /* Dungeon template 1.4 for NeoFrag Alpha 0.1.6 ./themes/dungeon/dungeon.php -*/ \ No newline at end of file +*/