diff --git a/lib/Driver/Sql.php b/lib/Driver/Sql.php index a67fdf7..b8da39d 100644 --- a/lib/Driver/Sql.php +++ b/lib/Driver/Sql.php @@ -130,7 +130,7 @@ public function getByUID($uid, $passphrase = null) throw new Mnemo_Exception($e->getMessage()); } - if ($row) { + if (!$row) { throw new Horde_Exception_NotFound('Not found'); } $this->_notepad = $row['memo_owner'];