Commit 57aa5e2f authored by Till Brehm's avatar Till Brehm

Fixed: FS#3007 - logout function always returns false

parent 128d3b5c
......@@ -126,8 +126,11 @@ class remoting {
$session_id = $app->db->quote($session_id);
$sql = "DELETE FROM remote_session WHERE remote_session = '$session_id'";
$app->db->query($sql);
return $app->db->affectedRows() == 1;
if($app->db->query($sql) != false) {
return true;
} else {
return false;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment