Fixed bug causing the script to quietly exit halfway through output(), if run on...
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 5 Jun 2004 04:22:53 +0000 (04:22 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 5 Jun 2004 04:22:53 +0000 (04:22 +0000)
includes/OutputPage.php

index b2fb915..4f797d2 100644 (file)
@@ -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 {