diff --git a/src/help.php b/src/help.php index 338689b..74b7b6a 100644 --- a/src/help.php +++ b/src/help.php @@ -54,11 +54,12 @@ if (!empty($_POST["action"])) { } try { - $stmt = $smarty->dbh()->prepare("SELECT show_helptext FROM {$opt["table_prefix"]}users WHERE userid = ?"); + $stmt = $smarty->dbh()->prepare("SELECT email, show_helptext FROM {$opt["table_prefix"]}users WHERE userid = ?"); $stmt->bindParam(1, $userid, PDO::PARAM_INT); $stmt->execute(); if ($row = $stmt->fetch()) { + $smarty->assign('email', $row["email"]); $smarty->assign('show_helptext', $row["show_helptext"]); $_SESSION['show_helptext'] = $row["show_helptext"]; } diff --git a/src/templates/help.tpl b/src/templates/help.tpl index 98b49cc..b92d63e 100644 --- a/src/templates/help.tpl +++ b/src/templates/help.tpl @@ -75,6 +75,24 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +