Revision: 504
http://cs-content.svn.sourceforge.net/cs-content/?rev=504&view=rev
Author: crazedsanity
Date: 2011-11-22 06:37:15 +0000 (Tue, 22 Nov 2011)
Log Message:
-----------
Remove empty index from local "sectionArr" variable.
Modified Paths:
--------------
trunk/current/contentSystem.class.php
Modified: trunk/current/contentSystem.class.php
===================================================================
--- trunk/current/contentSystem.class.php 2011-11-22 03:57:58 UTC (rev 503)
+++ trunk/current/contentSystem.class.php 2011-11-22 06:37:15 UTC (rev 504)
@@ -774,6 +774,9 @@
//make the "final section" available to scripts.
$finalSection = $this->finalSection;
$sectionArr = $this->sectionArr;
+ if(count($sectionArr) && $sectionArr[(count($sectionArr)-1)] == "") {
+ array_pop($sectionArr);
+ }
$fullSectionArr = $this->fullSectionArr;
array_unshift($sectionArr, $this->baseDir);
$finalURL = $this->gfObj->string_from_array($sectionArr, NULL, '/');
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|