keepItemsInArray() was not declared static
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Sat, 10 Jan 2009 19:18:36 +0000 (19:18 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Sat, 10 Jan 2009 19:18:36 +0000 (19:18 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4678 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_div.php

index a459165..3d34759 100755 (executable)
@@ -1717,7 +1717,7 @@ final class t3lib_div {
         * @param       string          $getValueFunc: (optional) Unique function name set by create_function() used to get the value to keep
         * @return      array           The filtered/reduced array with the kept items
         */
-       public function keepItemsInArray(array $array, $keepItems, $getValueFunc=null) {
+       public static function keepItemsInArray(array $array, $keepItems, $getValueFunc=null) {
                if ($array) {
                                // Convert strings to arrays:
                        if (is_string($keepItems)) {