From 35e4aa354a66455f91c1c717a14b3ba95ead3961 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Tue, 25 May 2010 14:09:30 -0400 Subject: [PATCH] Beatnik: Fix duplicate message/false positive on autogenerate --- beatnik/lib/Beatnik.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beatnik/lib/Beatnik.php b/beatnik/lib/Beatnik.php index 3bc1610e3..4a8f51f07 100644 --- a/beatnik/lib/Beatnik.php +++ b/beatnik/lib/Beatnik.php @@ -565,10 +565,11 @@ class Beatnik { } try { $result = $beatnik->driver->saveRecord(array_merge($defaults, $info)); + $GLOBALS['notification']->push(sprintf(_('Record added: %s/%s'), $rectype, $info['hostname']), 'horde.success'); } catch (Exception $e) { $GLOBALS['notification']->push($e->getMessage(), 'horde.error'); + return false; } - $GLOBALS['notification']->push(sprintf(_('Record added: %s/%s'), $rectype, $info['hostname']), 'horde.success'); } } return true; -- 2.11.0