public function saveArticle(&$a)
{
+ $a->_cid = ($a->_cid == 0) ? null : $a->_cid;
if ($a->_aid >= 0) {
XDB::execute('REPLACE INTO newsletter_art (id, aid, cid, pos, title, body, append)
VALUES ({?}, {?}, {?}, {?}, {?}, {?}, {?})',
{
$user = is_null($uid) ? S::v('uid') : $uid;
XDB::execute("REPLACE INTO newsletter_ins (uid,last)
- VALUES ({?}, 0)", $user);
+ VALUES ({?}, NULL)", $user);
}
protected function subscriptionWhere()