diff options
author | Brion Vibber <brion@status.net> | 2010-01-06 13:08:56 -0800 |
---|---|---|
committer | Brion Vibber <brion@status.net> | 2010-01-06 13:08:56 -0800 |
commit | 6f5b765c97c8616e4a79719bfe835cb03dc0a236 (patch) | |
tree | 1b4d6ac128a877099ad986c0809963d110df0156 /scripts/console.php | |
parent | 7ed5a38fca99ef47deba973523510f295c3ca6f7 (diff) |
suppress notice for undefined prompt variable when console.php is used from non-interactive terminal
Diffstat (limited to 'scripts/console.php')
-rwxr-xr-x | scripts/console.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/console.php b/scripts/console.php index 329caf472..8b62a3a96 100755 --- a/scripts/console.php +++ b/scripts/console.php @@ -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); |