mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-25 19:42:30 +00:00
Rmoeve more unused leftovers from 1.0 to 2.0.
This commit is contained in:
@@ -52,20 +52,6 @@ class Note extends CI_Model {
|
||||
return $this->db->get('notes');
|
||||
}
|
||||
|
||||
function ClaimAllNotes($id = NULL) {
|
||||
// if $id is empty then use session user_id
|
||||
if (empty($id)) {
|
||||
// Get the first USER ID from user table in the database
|
||||
$id = $this->db->get("users")->row()->user_id;
|
||||
}
|
||||
|
||||
$data = array(
|
||||
'user_id' => $id,
|
||||
);
|
||||
|
||||
$this->db->update('notes', $data);
|
||||
}
|
||||
|
||||
function CountAllNotes() {
|
||||
// count all notes
|
||||
$this->db->where('user_id =', NULL);
|
||||
|
||||
Reference in New Issue
Block a user