write_record() should return boolean value

pull/5514/head
Aleksander Machniak 8 years ago
parent b26dcb64c3
commit 7e90de4ef5

@ -403,7 +403,7 @@ class rcube_cache
$this->userid, $key, $data);
}
return $this->db->affected_rows($result);
return $this->db->affected_rows($result) > 0;
}
/**

@ -392,7 +392,7 @@ class rcube_cache_shared
$key, $data);
}
return $this->db->affected_rows($result);
return $this->db->affected_rows($result) > 0;
}
/**

Loading…
Cancel
Save