Browse Source

Replace split

jmontoyaa 8 years ago
parent
commit
c7fa10b08b
1 changed files with 2 additions and 3 deletions
  1. 2 3
      main/inc/lib/banner.lib.php

+ 2 - 3
main/inc/lib/banner.lib.php

@@ -453,7 +453,7 @@ function menuArray()
             }
         } else {
             if (api_get_user_id() && !api_is_anonymous()) {
-                $list = split("\n", $openMenuTabsLoggedIn);
+                $list = explode("\n", $openMenuTabsLoggedIn);
                 foreach ($list as $link) {
                     $matches = array();
                     $match = preg_match('$href="([^"]*)" target="([^"]*)">([^<]*)</a>$', $link, $matches);
@@ -467,7 +467,7 @@ function menuArray()
                     }
                 }
             } else {
-                $list = split("\n", $open);
+                $list = explode("\n", $open);
                 foreach ($list as $link) {
                     $matches = array();
                     $match = preg_match('$href="([^"]*)" target="([^"]*)">([^<]*)</a>$', $link, $matches);
@@ -488,7 +488,6 @@ function menuArray()
         //$pre_lis = '';
         $activeSection = '';
         foreach ($mainNavigation['navigation'] as $section => $navigation_info) {
-
             $key = (!empty($navigation_info['key'])?'tab-'.$navigation_info['key']:'');
 
             if (isset($GLOBALS['this_section'])) {