From a2a2f647c18e2eb7475251d891200f9ee9843c1a Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 27 Aug 2014 13:56:00 +0200 Subject: [PATCH] Fix detection if a note was found. --- mnemo/lib/Driver/Sql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mnemo/lib/Driver/Sql.php b/mnemo/lib/Driver/Sql.php index eeefad35d5a..5dbdfafb123 100644 --- a/mnemo/lib/Driver/Sql.php +++ b/mnemo/lib/Driver/Sql.php @@ -108,7 +108,7 @@ public function get($noteId, $passphrase = null) throw new Mnemo_Exception($e->getMessage()); } - if (!count($row)) { + if (!$row) { throw new Horde_Exception_NotFound(); }