- Create a generic function to empty a folder tree, thanks to
Randy Smith (#1145578).
- Add robots noindex/nofollow meta tag to SquirrelMail generated pages.
+ - Fix incorrect folder hierarchy display (#1009654), thanks
+ Awais Ahmad for the patch (#1082558).
Version 1.5.0
--------------------
return false;
}
/* check for delimiter */
- if (!substr($parentbox,-1) == $delimiter) {
- $parentbox.=$delimiter;
- }
- if (substr($subbox,0,strlen($parentbox)) == $parentbox) {
- return true;
- } else {
- return false;
- }
+ if (substr($parentbox,-1) != $delimiter) {
+ $parentbox .= $delimiter;
+ }
+
+ return (substr($subbox,0,strlen($parentbox)) == $parentbox);
}
/**
}
}
}
- /* Rest of the folders */
+
+ /* Find INBOX's children */
+ for($k = 0; $k < $cnt; ++$k) {
+ if (isBoxBelow(strtolower($boxesall[$k]['unformatted']), 'inbox') &&
+ strtolower($boxesall[$k]['unformatted']) <> 'inbox') {
+ $boxesnew[] = $boxesall[$k];
+ $used[$k] = true;
+ }
+ }
+
+ /* Rest of the folders */
for($k = 0; $k < $cnt; $k++) {
if (!$used[$k]) {
$boxesnew[] = $boxesall[$k];