Skip to content

Commit a642edd

Browse files
committed
Fixed possible race condition, closes thorsten#1639
1 parent d15e4fc commit a642edd

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

phpmyfaq/admin/record.show.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,10 @@ function verifyEntryURL_failure(XmlRequest)
408408
<?= $PMF_LANG['ad_record_active'] ?>
409409
</label>
410410
<?php } else { ?>
411-
<i aria-hidden="true" class="fa fa-ban"></i>
411+
<span class="fa-stack">
412+
<i class="fa fa-check fa-stack-1x"></i>
413+
<i class="fa fa-ban fa-stack-2x text-danger"></i>
414+
</span>
412415
<?php } ?>
413416
</th>
414417
<th colspan="2">
@@ -477,17 +480,17 @@ function verifyEntryURL_failure(XmlRequest)
477480
</label>
478481
</td>
479482
<td>
480-
<?php if ($user->perm->checkRight($user->getUserId(),
481-
'approverec') && isset($numVisits[$record['id']])) { ?>
483+
<?php if ($user->perm->checkRight($user->getUserId(), 'approverec')) { ?>
482484
<label>
483485
<input type="checkbox" lang="<?= $record['lang'] ?>" class="active-records-category-<?= $cid ?>"
484486
onclick="saveStatus(<?= $cid.', ['.$record['id'].']' ?>, 'active', '<?= $user->getCsrfTokenFromSession() ?>');"
485487
id="active_record_<?= $cid.'_'.$record['id'] ?>"
486488
<?= 'yes' == $record['active'] ? 'checked' : ' ' ?>>
487489
</label>
488490
<?php } else { ?>
489-
<span class="badge badge-important">
490-
<i aria-hidden="true" class="fa fa-white fa fa-ban-circle"></i>
491+
<span class="fa-stack">
492+
<i class="fa fa-check fa-stack-1x"></i>
493+
<i class="fa fa-ban fa-stack-2x text-danger"></i>
491494
</span>
492495
<?php } ?>
493496
</td>

0 commit comments

Comments
 (0)