From 3cdf0dd2534103c16525219ae63c190bb3851ff4 Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Wed, 19 Sep 2007 07:26:15 +0000 Subject: [PATCH] accesslib: get_parent_contexts() bugfix --- lib/accesslib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/accesslib.php b/lib/accesslib.php index 789c51b7eb..3e97237f00 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -3378,7 +3378,7 @@ function get_parent_contexts($context) { } $parentcontexts = substr($context->path, 1); // kill leading slash - $parentcontexts = explode(',', $parentcontexts); + $parentcontexts = explode('/', $parentcontexts); array_pop($parentcontexts); // and remove its own id return array_reverse($parentcontexts); -- 2.39.5