mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:02:58 +00:00
don't quit silently, at least a TODO is now around
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
e8e51d8535
commit
4fe5cdf3fd
2 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue