removed $i variable, it not being used...

removed $i variable, it not being used...
This commit is contained in:
Andras Kende 2013-08-14 02:16:46 -07:00
parent 3f58be260e
commit d84a2d9419

View file

@ -21,7 +21,6 @@
<h2><?php echo __d('cake', 'View %s', $singularHumanName); ?></h2> <h2><?php echo __d('cake', 'View %s', $singularHumanName); ?></h2>
<dl> <dl>
<?php <?php
$i = 0;
foreach ($scaffoldFields as $_field) { foreach ($scaffoldFields as $_field) {
$isKey = false; $isKey = false;
if (!empty($associations['belongsTo'])) { if (!empty($associations['belongsTo'])) {
@ -98,7 +97,6 @@ foreach ($associations['hasOne'] as $_alias => $_details): ?>
<?php if (!empty(${$singularVar}[$_alias])): ?> <?php if (!empty(${$singularVar}[$_alias])): ?>
<dl> <dl>
<?php <?php
$i = 0;
$otherFields = array_keys(${$singularVar}[$_alias]); $otherFields = array_keys(${$singularVar}[$_alias]);
foreach ($otherFields as $_field) { foreach ($otherFields as $_field) {
echo "\t\t<dt>" . Inflector::humanize($_field) . "</dt>\n"; echo "\t\t<dt>" . Inflector::humanize($_field) . "</dt>\n";