From 4a1c27f88ec5a5dcb3158b5d605e4e656adbb311 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Tue, 25 May 2010 14:03:57 -0400 Subject: [PATCH] Beatnik: No more PEAR_Error --- beatnik/lib/Beatnik.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beatnik/lib/Beatnik.php b/beatnik/lib/Beatnik.php index f81d55936..191983bff 100644 --- a/beatnik/lib/Beatnik.php +++ b/beatnik/lib/Beatnik.php @@ -566,7 +566,7 @@ class Beatnik { try { $result = $beatnik->driver->saveRecord(array_merge($defaults, $info)); } catch (Exception $e) { - $GLOBALS['notification']->push($result->getMessage() . ': ' . $result->getDebugInfo(), 'horde.error'); + $GLOBALS['notification']->push($e->getMessage() . ': ' . $e->getDebugInfo(), 'horde.error'); } $GLOBALS['notification']->push(sprintf(_('Record added: %s/%s'), $rectype, $info['hostname']), 'horde.success'); } -- 2.11.0