From a66fd7d0856fa9006d18ed1ea2bd818a5bbc4764 Mon Sep 17 00:00:00 2001
From: Till Brehm <tbrehm@ispconfig.org>
Date: Fri, 30 May 2014 07:56:44 -0400
Subject: [PATCH] Improved API behaviour: The $params array must contain only the new values and not all values of a record on update. Setting all values does not hurt though, so the change is downwards compatible with older versions.
---
interface/web/tools/lib/menu.d/resync.menu.php | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/interface/web/tools/lib/menu.d/resync.menu.php b/interface/web/tools/lib/menu.d/resync.menu.php
index 3ef45fb..5de2f77 100644
--- a/interface/web/tools/lib/menu.d/resync.menu.php
+++ b/interface/web/tools/lib/menu.d/resync.menu.php
@@ -5,18 +5,18 @@
if($app->auth->is_admin()) {
-$items = array();
+ $items = array();
-$items[] = array( 'title' => 'Resync',
- 'target' => 'content',
- 'link' => 'tools/resync.php');
+ $items[] = array( 'title' => 'Resync',
+ 'target' => 'content',
+ 'link' => 'tools/resync.php');
-$module['nav'][] = array( 'title' => 'Sync Tools',
- 'open' => 1,
- 'items' => $items);
+ $module['nav'][] = array( 'title' => 'Sync Tools',
+ 'open' => 1,
+ 'items' => $items);
-unset($items);
+ unset($items);
}
-?>
\ No newline at end of file
+?>
--
Gitblit v1.9.1