Commit 8bebb2c9971906b8190cc583c5520b2cf1491e89
1 parent
f74dccd1
Issue #2 fix
Showing
3 changed files
with
8 additions
and
4 deletions
README.md
config/config.php
src/include.php
... | ... | @@ -528,7 +528,11 @@ function menu_buttons() { |
528 | 528 | $cmc = (is_array($cmasters)) ? sizeof($cmasters) : 0; |
529 | 529 | $cslaves = $user->getCommitableZones('slave'); |
530 | 530 | $csc = (is_array($cslaves)) ? sizeof($cslaves) : 0; |
531 | - $commitables = $cmc + $csc; | |
531 | + $dmasters = $user->getDeletedZones('master'); | |
532 | + $dmc = (is_array($dmasters)) ? sizeof($dmasters) : 0; | |
533 | + $dslaves = $user->getDeletedZones('slave'); | |
534 | + $dsc = (is_array($dslaves)) ? sizeof($dslaves) : 0; | |
535 | + $commitables = $cmc + $csc + $dmc + $dsc; | |
532 | 536 | if($commitables == 0) { |
533 | 537 | $committext = ""; |
534 | 538 | $smarty->assign("donotcommit","yes"); |
... | ... | @@ -542,8 +546,7 @@ function menu_buttons() { |
542 | 546 | sizeof($user->getDeletedZones('slave')) + |
543 | 547 | sizeof($user->getDeletedZones('master')) > 0) { |
544 | 548 | $maintext = "\" class=\"attention"; |
545 | - } | |
546 | - else { | |
549 | + } else { | |
547 | 550 | $maintext = ""; |
548 | 551 | } |
549 | 552 | ... | ... |