t3lib_div uses array_unshift() instead of array_shift() in getIndpEnv
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Sun, 16 Mar 2008 14:34:27 +0000 (14:34 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Sun, 16 Mar 2008 14:34:27 +0000 (14:34 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3435 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_div.php

index 28804e5..651fce7 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
 
        * Fixed bug #7793: Argument 1 passed to t3lib_div::arrayToLogString() in module setting must not be null (thanks to Steffen Kamper)
        * Fixed bug #7861: t3lib_div::mkdir() should suppress PHP warnings/errors (thanks to Francois Suter)
+       * Fixed bug #7843: t3lib_div uses array_unshift() instead of array_shift() in getIndpEnv() (thanks to Christian Kuhn)
 
 2008-03-16  Ingo Renner  <ingo@typo3.org>
 
index 0626cfc..d85e3f7 100755 (executable)
@@ -3420,7 +3420,7 @@ class t3lib_div {
                                                                $ip = array_pop($ip);
                                                        break;
                                                        case 'first':
-                                                               $ip = array_unshift($ip);
+                                                               $ip = array_shift($ip);
                                                        break;
                                                        case 'none':
                                                        default:
@@ -3444,7 +3444,7 @@ class t3lib_div {
                                                                $host = array_pop($host);
                                                        break;
                                                        case 'first':
-                                                               $host = array_unshift($host);
+                                                               $host = array_shift($host);
                                                        break;
                                                        case 'none':
                                                        default: