suppress notice for undefined prompt variable when console.php is used from non-interactive terminal
This commit is contained in:
parent
7ed5a38fca
commit
6f5b765c97
@ -128,6 +128,8 @@ function console_help()
|
||||
if (CONSOLE_INTERACTIVE) {
|
||||
print "StatusNet interactive PHP console... type ctrl+D or enter 'exit' to exit.\n";
|
||||
$prompt = common_config('site', 'name') . '> ';
|
||||
} else {
|
||||
$prompt = '';
|
||||
}
|
||||
while (!feof(STDIN)) {
|
||||
$line = read_input_line($prompt);
|
||||
|
Loading…
Reference in New Issue
Block a user