From: Tim Starling Date: Sat, 5 Jun 2004 04:22:53 +0000 (+0000) Subject: Fixed bug causing the script to quietly exit halfway through output(), if run on... X-Git-Tag: 1.5.0alpha1~3033 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=a7c1948324e9f1b8956738d37c37fc53d1833384;p=lhc%2Fweb%2Fwiklou.git Fixed bug causing the script to quietly exit halfway through output(), if run on Windows --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index b2fb915b37..4f797d2b00 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -418,7 +418,11 @@ class OutputPage { # Use real server name if available, so we know which machine # in a server farm generated the current page. - $uname = @posix_uname(); + if ( function_exists( "posix_uname" ) ) { + $uname = @posix_uname(); + } else { + $uname = false; + } if( is_array( $uname ) && isset( $uname['nodename'] ) ) { $hostname = $uname['nodename']; } else {