summaryrefslogtreecommitdiff
path: root/includes/model/Message_model.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/model/Message_model.php')
-rw-r--r--includes/model/Message_model.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/model/Message_model.php b/includes/model/Message_model.php
index 89beeb07..26f7e599 100644
--- a/includes/model/Message_model.php
+++ b/includes/model/Message_model.php
@@ -43,10 +43,10 @@ function Message_send($receiver_user_id, $text)
if (
($text != '' && is_numeric($receiver_user_id))
&& count(DB::select('
- SELECT `UID`
- FROM `User`
- WHERE `UID` = ?
- AND NOT `UID` = ?
+ SELECT `id`
+ FROM `users`
+ WHERE `id` = ?
+ AND NOT `id` = ?
LIMIT 1
', [$receiver_user_id, $user->id])) > 0
) {