Commit 8bebb2c9971906b8190cc583c5520b2cf1491e89

Authored by Péter Szládovics
1 parent f74dccd1

Issue #2 fix

README.md
1 1 # SMBind-ng
  2 +v0.91c
  3 +
2 4 This is a forked project from [smbind](http://sourceforge.net/projects/smbind/).
3 5  
4 6 This fork has many improvements, security changes and new features
... ...
config/config.php
1   -# Required parts
2 1 <?php
3 2 $_CONF['db_type'] = '';
4 3 $_CONF['db_user'] = '';
... ...
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  
... ...