Beatnik: No more PEAR_Error
authorBen Klang <ben@alkaloid.net>
Tue, 25 May 2010 18:03:57 +0000 (14:03 -0400)
committerBen Klang <ben@alkaloid.net>
Tue, 25 May 2010 18:03:57 +0000 (14:03 -0400)
beatnik/lib/Beatnik.php

index f81d559..191983b 100644 (file)
@@ -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');
             }