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