We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87a30c4 commit be7c439Copy full SHA for be7c439
interface/web/dashboard/dashboard.php
@@ -48,7 +48,14 @@
48
/*
49
* Let the user welcome
50
*/
51
-$welcome = sprintf($wb['welcome_user_txt'], $_SESSION['s']['user']['username']);
+if($_SESSION['s']['user']['typ'] == 'admin') {
52
+ $name = $_SESSION['s']['user']['username'];
53
+} else {
54
+ $tmp = $app->db->queryOneRecord("SELECT contact_name FROM client WHERE username = '".$app->db->quote($_SESSION['s']['user']['username'])."'");
55
+ $name = $tmp['contact_name'];
56
+}
57
+
58
+$welcome = sprintf($wb['welcome_user_txt'], $name);
59
$app->tpl->setVar('welcome_user', $welcome);
60
61
0 commit comments