We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 128d3b5 commit 57aa5e2Copy full SHA for 57aa5e2
interface/lib/classes/remoting.inc.php
@@ -126,8 +126,11 @@ public function logout($session_id)
126
$session_id = $app->db->quote($session_id);
127
128
$sql = "DELETE FROM remote_session WHERE remote_session = '$session_id'";
129
- $app->db->query($sql);
130
- return $app->db->affectedRows() == 1;
+ if($app->db->query($sql) != false) {
+ return true;
131
+ } else {
132
+ return false;
133
+ }
134
}
135
136
0 commit comments