Commit f0b76cfb by Nikola Trifunovic

changed vars

parent 478e6023
...@@ -19,10 +19,10 @@ use yii\gii\CodeFile; ...@@ -19,10 +19,10 @@ use yii\gii\CodeFile;
<th class="file">Code File</th> <th class="file">Code File</th>
<th class="action">Action</th> <th class="action">Action</th>
<?php <?php
$no_file_changes = true; $file_changes_exists = false;
foreach ($files as $file) { foreach ($files as $file) {
if ($file->operation !== CodeFile::OP_SKIP) { if ($file->operation !== CodeFile::OP_SKIP) {
$no_changes = false; $file_changes_exists = true;
echo '<th><input type="checkbox" id="check-all"></th>'; echo '<th><input type="checkbox" id="check-all"></th>';
break; break;
} }
...@@ -49,7 +49,7 @@ use yii\gii\CodeFile; ...@@ -49,7 +49,7 @@ use yii\gii\CodeFile;
} }
?> ?>
</td> </td>
<?php if (!$no_file_changes) { ?> <?php if ($file_changes_exists) { ?>
<td class="check"> <td class="check">
<?php <?php
if ($file->operation === CodeFile::OP_SKIP) { if ($file->operation === CodeFile::OP_SKIP) {
......
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