Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dinoxtech committed Jul 5, 2021
1 parent ac2ffb2 commit 597eba5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions upload/admin/model/blog/article.php
Expand Up @@ -13,7 +13,7 @@ public function addArticle($data) {
}

foreach ($data['article_description'] as $language_id => $value) {
$this->db->query("INSERT INTO " . DB_PREFIX . "article_description SET article_id = '" . (int)$article_id . "', language_id = '" . (int)$language_id . "', name = '" . $this->db->escape($value['name']) . "', description = '" . $this->db->escape($value['description']) . "', tag = '" . $this->db->escape($value['tag']) . "', meta_title = '" . $this->db->escape($value['meta_title']) . "', meta_h1 = '" . $this->db->escape($value['meta_h1']) . "', meta_description = '" . $this->db->escape($value['meta_description']) . "', meta_keyword = '" . $this->db->escape($value['meta_keyword']) . "'");
$this->db->query("INSERT INTO " . DB_PREFIX . "article_description SET article_id = '" . (int)$article_id . "', language_id = '" . (int)$language_id . "', name = '" . $this->db->escape($value['name']) . "', description = '" . $this->db->escape($value['description']) . "', meta_title = '" . $this->db->escape($value['meta_title']) . "', meta_h1 = '" . $this->db->escape($value['meta_h1']) . "', meta_description = '" . $this->db->escape($value['meta_description']) . "', meta_keyword = '" . $this->db->escape($value['meta_keyword']) . "'");
}

if (isset($data['article_store'])) {
Expand Down Expand Up @@ -320,8 +320,7 @@ public function getArticleDescriptions($article_id) {
'meta_title' => $result['meta_title'],
'meta_h1' => $result['meta_h1'],
'meta_description' => $result['meta_description'],
'meta_keyword' => $result['meta_keyword'],
'tag' => $result['tag']
'meta_keyword' => $result['meta_keyword']
);
}

Expand Down

0 comments on commit 597eba5

Please sign in to comment.