• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision3437fe626f19a0401dfb88fab95fd8f2e86d27a7 (tree)
Time2014-11-26 01:32:41
Authorhenoheno <henoheno>
Commiterumorigu

Log Message

$HTTP_SERVER_VARS for suppressing notices

Change Summary

Incremental Difference

--- a/lib/init.php
+++ b/lib/init.php
@@ -22,6 +22,9 @@ define('S_COPYRIGHT',
2222 /////////////////////////////////////////////////
2323 // Init server variables
2424
25+// Comapat and suppress notices
26+if (!isset($HTTP_SERVER_VARS)) $HTTP_SERVER_VARS = array();
27+
2528 foreach (array('SCRIPT_NAME', 'SERVER_ADMIN', 'SERVER_NAME',
2629 'SERVER_PORT', 'SERVER_SOFTWARE') as $key) {
2730 define($key, isset($_SERVER[$key]) ? $_SERVER[$key] : '');