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

Fixed: FS#3007 - logout function always returns false

parent 128d3b5c
...@@ -126,8 +126,11 @@ class remoting { ...@@ -126,8 +126,11 @@ class remoting {
$session_id = $app->db->quote($session_id); $session_id = $app->db->quote($session_id);
$sql = "DELETE FROM remote_session WHERE remote_session = '$session_id'"; $sql = "DELETE FROM remote_session WHERE remote_session = '$session_id'";
$app->db->query($sql); if($app->db->query($sql) != false) {
return $app->db->affectedRows() == 1; 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