suppress notice for undefined prompt variable when console.php is used from non-interactive terminal

This commit is contained in:
Brion Vibber 2010-01-06 13:08:56 -08:00
parent 7ed5a38fca
commit 6f5b765c97

View File

@ -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);