Minor bugfixes

This commit is contained in:
root 2015-12-30 16:34:58 +01:00
parent 97410a1605
commit 05fbc816f4
3 changed files with 3 additions and 2 deletions

View file

@ -585,6 +585,7 @@
}
return $ret;
}
public function getDeletedZones($zonetype = NULL) {
$ret = array();
if (is_string($zonetype)) {

View file

@ -525,7 +525,7 @@ function menu_buttons() {
$cmasters = $user->getCommitableZones('master');
$cmc = (is_array($cmasters)) ? sizeof($cmasters) : 0;
$cslaves = intval($user->getCommitableZones('slave'));
$cslaves = $user->getCommitableZones('slave');
$csc = (is_array($cslaves)) ? sizeof($cslaves) : 0;
$commitables = $cmc + $csc;
if($commitables == 0) {

View file

@ -43,7 +43,7 @@ $smarty->assign("pagetitle", "Slave zones");
$smarty->assign("template", "slave_zoneread.tpl");
$smarty->assign("help", help("zoneread"));
$smarty->assign("menu_button", menu_buttons());
$smarty->assign("page_root", $src . "zonelist.php?");
$smarty->assign("page_root", $src . "slave_zonelist.php?");
$smarty->display("main.tpl");
?>