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.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/model/Message_model.php b/includes/model/Message_model.php
index 26f7e599..a438a8c5 100644
--- a/includes/model/Message_model.php
+++ b/includes/model/Message_model.php
@@ -35,7 +35,7 @@ function Message($message_id)
*/
function Message_send($receiver_user_id, $text)
{
- $user = Auth()->user();
+ $user = auth()->user();
$text = preg_replace("/([^\p{L}\p{P}\p{Z}\p{N}\n]{1,})/ui", '', strip_tags($text));
$receiver_user_id = preg_replace('/([^\d]{1,})/ui', '', strip_tags($receiver_user_id));