| @@ 34-40 (lines=7) @@ | ||
| 31 | public $requestText = ''; |
|
| 32 | ||
| 33 | // TODO - remove public static function db_buddy_update_status($buddy_id, $status) { |
|
| 34 | public function db_buddy_update_status($status) { |
|
| 35 | $buddy_id = idval($this->row['BUDDY_ID']); |
|
| 36 | ||
| 37 | doquery("UPDATE `{{buddy}}` SET `BUDDY_STATUS` = {$status} WHERE `BUDDY_ID` = '{$buddy_id}' LIMIT 1;"); |
|
| 38 | ||
| 39 | return classSupernova::$db->db_affected_rows(); |
|
| 40 | } |
|
| 41 | ||
| 42 | public function db_buddy_check_relation($user, $new_friend_row) { |
|
| 43 | return static::$dbStatic->doQueryFetch( |
|
| @@ 40-46 (lines=7) @@ | ||
| 37 | public $requestText = ''; |
|
| 38 | ||
| 39 | // TODO - remove public static function db_buddy_update_status($buddy_id, $status) { |
|
| 40 | public function db_buddy_update_status($status) { |
|
| 41 | $buddy_id = idval($this->_container->dbId); |
|
| 42 | ||
| 43 | doquery("UPDATE `{{buddy}}` SET `BUDDY_STATUS` = {$status} WHERE `BUDDY_ID` = '{$buddy_id}' LIMIT 1;"); |
|
| 44 | ||
| 45 | return classSupernova::$db->db_affected_rows(); |
|
| 46 | } |
|
| 47 | ||
| 48 | public function db_buddy_check_relation($user, $new_friend_row) { |
|
| 49 | return static::$dbStatic->doQueryFetch( |
|