From 8bebb2c9971906b8190cc583c5520b2cf1491e89 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 4 Jan 2016 12:05:23 +0100 Subject: [PATCH] Issue #2 fix --- README.md | 2 ++ config/config.php | 1 - src/include.php | 9 ++++++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6c9bcbc..a12f175 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/config/config.php b/config/config.php index a4c9298..e1a845c 100644 --- a/config/config.php +++ b/config/config.php @@ -1,4 +1,3 @@ -# Required parts 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 = ""; }