Browse Source

Minor code clean up

Fredrik Jervfors 21 năm trước cách đây
mục cha
commit
19a22bc61e
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      functions/tree.php

+ 3 - 2
functions/tree.php

@@ -136,8 +136,9 @@ function walkTreeInPostOrderCreatingFoldersUnderTrash($index, $imap_stream, $tre
     global $trash_folder, $delimiter;
 
     $position = strrpos($topFolderName, $delimiter);
-    if ($position !== FALSE)
+    if ($position !== FALSE) {
         $position++;
+    }
     $subFolderName = substr($tree[$index]['value'], $position);
 
     if ($tree[$index]['doIHaveChildren']) {
@@ -179,4 +180,4 @@ function simpleWalkTreePre($index, $tree) {
         echo $tree[$index]['value'] . '<br>';
     }
 }
-?>
+?>