From 4fe5cdf3fdb8b14eff7c772e44a8f8466944d04c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Tue, 7 Feb 2017 09:06:33 +0100 Subject: [PATCH] don't quit silently, at least a TODO is now around MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- include/ostatus.php | 1 + mod/settings.php | 1 + 2 files changed, 2 insertions(+) diff --git a/include/ostatus.php b/include/ostatus.php index 74ad948869..992c77f378 100644 --- a/include/ostatus.php +++ b/include/ostatus.php @@ -980,6 +980,7 @@ class ostatus { $r = q("SELECT `nurl` FROM `contact` WHERE `uid` = %d AND `self`", intval($uid)); if (!dbm::is_result($r)) { + /// @TODO don't quit silently killme(); } diff --git a/mod/settings.php b/mod/settings.php index bfc444334f..c5b7988803 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -385,6 +385,7 @@ function settings_post(App $a) { // changing it to the new value $r = q("SELECT `password` FROM `user`WHERE `uid` = %d LIMIT 1", intval(local_user())); if (!dbm::is_result($r)) { + /// @todo Don't quit silently here killme(); } elseif ( $oldpass != $r[0]['password'] ) { notice( t('Wrong password.') . EOL);