summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9ac83c7)
raw | patch | inline | side by side (parent: 9ac83c7)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 25 Jul 2008 13:31:17 +0000 (13:31 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 25 Jul 2008 13:31:17 +0000 (13:31 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12058 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/netatalk/personal/netatalk/main.inc | patch | blob | history |
diff --git a/gosa-plugins/netatalk/personal/netatalk/main.inc b/gosa-plugins/netatalk/personal/netatalk/main.inc
index cfaa7862aba0eeae741dba7ae9267ee80600387e..36820497edd422f2aebea1188e6a1aa14c781e31 100644 (file)
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+$lock_msg = "";
if (!$remove_lock) {
/* Reset requested? */
if (isset ($_POST['edit_cancel']) || (isset ($_GET['reset']) && $_GET['reset'] == 1)) {
/* Check locking */
if (($username = get_lock($ui->dn)) != "") {
session::set('back_plugin',$plug);
- gen_locked_message($username, $ui->dn);
- exit ();
+ $lock_msg = gen_locked_message ($username, $ui->dn);
}
/* Lock the current entry */
}
/* Execute formular */
- $display = $netatalk->execute();
+ if(!empty($lock_msg(){
+ $display = $lock_msg;
+ }else{
+ $display.= $netatalk->execute ();
+ }
+
/* Store changes in session */
if (session::is_set('edit')) {