Skip to content

Commit

Permalink
#6
Browse files Browse the repository at this point in the history
  • Loading branch information
sazanof authored Aug 29, 2017
1 parent 6c6b80c commit 7355c53
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions assets/modules/letters/classes/Subscribers.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
<?php

/**
* Created by PhpStorm.
* User: sazanof
* Date: 13.01.2017
* Time: 13:49
*/
class Subscribers
{
protected $tbl = TBL_SUBSCRIBERS;
Expand Down Expand Up @@ -66,7 +59,7 @@ public function InsOrUpdSubscriber($data,$id=false){
if (!intval($data['cat_id'])){
unset($data['cat_id']);
}
if (!in_array('', $data)){
if ($this->checkEmail($data['email'])){
$sql = "INSERT INTO $this->tbl ($keys) VALUES ($values) ON DUPLICATE KEY UPDATE $dub";
if($modx->db->query($sql)){
$res = true;
Expand Down

0 comments on commit 7355c53

Please sign in to comment.