Commit 1dc14ccb authored by sept_7's avatar sept_7

[ENH] coding style, avoid function in for loop statement, PHPCS

parent 6990e9d6
......@@ -809,8 +809,9 @@ if(isset($_REQUEST["preview"])) {
function parse_output(&$obj, &$parts,$i) {
if(!empty($obj['parts'])) {
for($i=0; $i<count($obj['parts']); $i++)
parse_output($obj['parts'][$i], $parts,$i);
foreach( $obj['parts'] as $index => $part ) {
parse_output($part, $parts,$index);
}
}elseif( $obj['type'] == 'application/x-tikiwiki' ) {
$aux["body"] = $obj['body'];
$ccc=$obj['header']["content-type"];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment