From: Ben Klang Date: Tue, 25 May 2010 18:09:30 +0000 (-0400) Subject: Beatnik: Fix duplicate message/false positive on autogenerate X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=35e4aa354a66455f91c1c717a14b3ba95ead3961;p=horde.git Beatnik: Fix duplicate message/false positive on autogenerate --- 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;