Browse code

clean code

devnewton authored on 28/12/2017 13:11:14
Showing 1 changed files
... ...
@@ -20,7 +20,7 @@ if (mb_strlen($login) === 0 && mb_strlen($info) === 0) {
20 20
 }
21 21
 
22 22
 if (mb_strlen(trim($message)) > 0 && mb_detect_encoding($message, 'UTF-8', true)) {
23
-    $posts = $pdo->prepare(
23
+    $pdo->prepare(
24 24
                     "INSERT INTO posts
25 25
             (login, info, message)
26 26
             VALUES (:login, :info, :message)