1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +02:00

Code speed optimization

This commit is contained in:
Cameron
2020-12-12 11:32:23 -08:00
parent d090b19c73
commit cf14705535
17 changed files with 48 additions and 45 deletions

View File

@@ -1742,7 +1742,7 @@ class e_jsmanager
$i -= 1;
}
if ($i > 0 && $parts[$i] === "") // remove empty parts
if ($i > 0 && empty($parts[$i])) // remove empty parts
{
unset($parts[$i]);
$parts = array_values($parts);