Pārlūkot izejas kodu

Someone meant to use strlen() instead of sizeof() but neither is necessary

pdontthink 3 gadi atpakaļ
vecāks
revīzija
fa13f1555d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      functions/imap_general.php

+ 1 - 1
functions/imap_general.php

@@ -1335,7 +1335,7 @@ function sqimap_parse_namespace(&$input) {
                 $namespace[$ns_strings[$i]] = array();
             } else {
                 // Pop-out the first ( and last ) for easier parsing
-                $ns = substr($regs[$i], 1, sizeof($regs[$i])-2);
+                $ns = substr($regs[$i], 1, -1);
                 if($c = preg_match_all('/\((?:(.*?)\s*?)\)/', $ns, $regs2)) {
                     $namespace[$ns_strings[$i]] = array();
                     for($j=0; $j<sizeof($regs2[1]); $j++) {