Commit 4478c77f authored by Till Brehm's avatar Till Brehm

Fixed: Re-Hiding donation dashbord message after 12 months does not work

parent 154574dc
...@@ -37,9 +37,9 @@ $app->auth->check_module_permissions('dashboard'); ...@@ -37,9 +37,9 @@ $app->auth->check_module_permissions('dashboard');
if(isset($_GET['hide'])) { if(isset($_GET['hide'])) {
if($_GET['hide'] == 'donate') { if($_GET['hide'] == 'donate') {
$timeout = time()+31536000; $timeout = time()+31536000;
$tmp = $app->db->queryOneRecord("SELECT value FROM sys_config WHERE group = 'interface' AND name = 'hide_donation_dashlet'"); $tmp = $app->db->queryOneRecord("SELECT `value` FROM `sys_config` WHERE `group` = 'interface' AND `name` = 'hide_donation_dashlet'");
if(is_array($tmp)) { if(is_array($tmp)) {
$app->db->query("UPDATE sys_config SET value = ? WHERE group = 'interface' AND name = 'hide_donation_dashlet')",$timeout); $app->db->query("UPDATE `sys_config` SET `value` = ? WHERE `group` = 'interface' AND `name` = 'hide_donation_dashlet'",$timeout);
} else { } else {
$app->db->query("INSERT INTO `sys_config` (`group`,`name`,`value`) VALUES ('interface','hide_donation_dashlet',?)",$timeout); $app->db->query("INSERT INTO `sys_config` (`group`,`name`,`value`) VALUES ('interface','hide_donation_dashlet',?)",$timeout);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment