Issue #2 fix
This commit is contained in:
parent
f74dccd1f6
commit
8bebb2c997
3 changed files with 8 additions and 4 deletions
|
@ -1,4 +1,6 @@
|
|||
# SMBind-ng
|
||||
v0.91c
|
||||
|
||||
This is a forked project from [smbind](http://sourceforge.net/projects/smbind/).
|
||||
|
||||
This fork has many improvements, security changes and new features
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# Required parts
|
||||
<?php
|
||||
$_CONF['db_type'] = '';
|
||||
$_CONF['db_user'] = '';
|
||||
|
|
|
@ -528,7 +528,11 @@ function menu_buttons() {
|
|||
$cmc = (is_array($cmasters)) ? sizeof($cmasters) : 0;
|
||||
$cslaves = $user->getCommitableZones('slave');
|
||||
$csc = (is_array($cslaves)) ? sizeof($cslaves) : 0;
|
||||
$commitables = $cmc + $csc;
|
||||
$dmasters = $user->getDeletedZones('master');
|
||||
$dmc = (is_array($dmasters)) ? sizeof($dmasters) : 0;
|
||||
$dslaves = $user->getDeletedZones('slave');
|
||||
$dsc = (is_array($dslaves)) ? sizeof($dslaves) : 0;
|
||||
$commitables = $cmc + $csc + $dmc + $dsc;
|
||||
if($commitables == 0) {
|
||||
$committext = "";
|
||||
$smarty->assign("donotcommit","yes");
|
||||
|
@ -542,8 +546,7 @@ function menu_buttons() {
|
|||
sizeof($user->getDeletedZones('slave')) +
|
||||
sizeof($user->getDeletedZones('master')) > 0) {
|
||||
$maintext = "\" class=\"attention";
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$maintext = "";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue