Skip to content

Commit d67940b

Browse files
committed
wip
1 parent 15cf722 commit d67940b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nodebb.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ public function setup( $args ) {
122122
// Customize the install page
123123
public function render_page( $args ) {
124124
global $hcpp;
125-
if ( false === (strpos( $_SERVER['REQUEST_URI'], '?app=NodeBB' ) !== false && $args['page'] == 'setup_webapp' ) ) return $args;
125+
if ( $args['page'] !== 'setup_webapp') return $args;
126+
if ( strpos( $_SERVER['REQUEST_URI'], '?app=NodeBB' ) === false ) return $args;
126127
$content = $args['content'];
127128
$user = trim($args['user'], "'");
128129
$shell = $hcpp->run( "list-user $user json")[$user]['SHELL'];

0 commit comments

Comments
 (0)