From 99a9a48eebce64b197e555e585f17fc13df5d077 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Tue, 3 Feb 2015 13:36:07 +0000 Subject: [PATCH] made minor code changes --- codepot/src/codepot/models/usermodel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codepot/src/codepot/models/usermodel.php b/codepot/src/codepot/models/usermodel.php index 01c3e952..12abb5e1 100644 --- a/codepot/src/codepot/models/usermodel.php +++ b/codepot/src/codepot/models/usermodel.php @@ -91,7 +91,7 @@ class UserModel extends Model $this->db->where ('userid', $userid); $this->db->set ('code_hide_line_num', (string)$settings->code_hide_line_num); $this->db->set ('code_hide_details', (string)$settings->code_hide_details); - if (strlen($settings->icon_name) > 0) $this->db->set ('icon_name', (string)$settings->icon_name); + if (strlen($icon_name_set) $this->db->set ('icon_name', (string)$settings->icon_name); $this->db->update ('user_settings'); if ($this->db->trans_status() === FALSE)