From b1a3a78dbca1b2d49265256c1b69a5e655f1fd99 Mon Sep 17 00:00:00 2001 From: Torben Dannhauer Date: Mon, 30 Mar 2026 18:48:58 +0200 Subject: [PATCH] Invert condition to check for missing row --- lib/Driver/Sql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'];