From: Chad Horohoe Date: Tue, 14 Dec 2010 12:51:59 +0000 (+0000) Subject: Style fix for r76220 X-Git-Tag: 1.31.0-rc.0~33313 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=6d8c760bba0686b031afff0c427ceb0e70c1307c;p=lhc%2Fweb%2Fwiklou.git Style fix for r76220 --- diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index e1e0098a99..5e615e6f9f 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -1070,11 +1070,7 @@ abstract class Maintenance { public static function readconsole( $prompt = '> ' ) { static $isatty = null; if ( is_null( $isatty ) ) { - if ( posix_isatty( 0 /*STDIN*/ ) ) { - $isatty = true; - } else { - $isatty = false; - } + $isatty = posix_isatty( 0 /*STDIN*/ ); } if ( $isatty && function_exists( 'readline' ) ) {