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.
2 parents 4075d34 + 19993fa commit 7c633d2Copy full SHA for 7c633d2
action/editcommit.php
@@ -117,14 +117,19 @@ private function commitFile($filePath, $message)
117
}
118
119
120
- private function getAuthor()
121
- {
122
- return $GLOBALS['USERINFO']['name'];
+ private function getUserInfo($key) {
+ if (isset($GLOBALS['USERINFO'][$key])) {
+ return $GLOBALS['USERINFO'][$key];
123
+ }
124
+ return '';
125
-
- private function getAuthorMail()
126
127
- return $GLOBALS['USERINFO']['mail'];
+
+ private function getAuthor() {
128
+ return $this->getUserInfo('name');
129
130
131
+ private function getAuthorMail() {
132
+ return $this->getUserInfo('mail');
133
134
135
private function computeLocalPath()
0 commit comments