File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,12 @@ class Admin extends ComponentBase {
37
37
protected $ options = [];
38
38
39
39
public $ cacheExpire = 0 ; //seconds
40
-
40
+ /*
41
41
function cacheKey() {
42
42
//disable caching
43
43
return false;
44
44
}
45
-
45
+ */
46
46
function results () {
47
47
if ($ this ->options ['admin_id ' ] || $ this ->options ['username ' ]) {
48
48
$ admins = new \Vvveb \Sql \AdminSQL ();
@@ -53,6 +53,8 @@ function results() {
53
53
}
54
54
55
55
if ($ results ) {
56
+ unset($ results ['password ' ], $ results ['token ' ]);
57
+
56
58
if (isset ($ results ['avatar ' ])) {
57
59
$ results ['avatar_url ' ] = Images::image ($ results ['avatar ' ], 'admin ' );
58
60
}
Original file line number Diff line number Diff line change @@ -53,6 +53,8 @@ function results() {
53
53
}
54
54
55
55
if ($ results ) {
56
+ unset($ results ['password ' ], $ results ['token ' ]);
57
+
56
58
if (isset ($ results ['avatar ' ])) {
57
59
$ results ['avatar_url ' ] = Images::image ($ results ['avatar ' ], 'user ' );
58
60
}
You can’t perform that action at this time.
0 commit comments