diff options
author | marijus <mario@localhost.localdomain> | 2014-02-03 08:03:46 +0100 |
---|---|---|
committer | marijus <mario@localhost.localdomain> | 2014-02-03 08:03:46 +0100 |
commit | 5c885e91a36bdbdd0829c2950b54bb84288e05a9 (patch) | |
tree | c17bcc246b68dd4a53b7883f81f596f82cc1e3fc /library | |
parent | 11efafb5d2b9a6b860772e4c4cec0cde5c1bf248 (diff) | |
parent | ee42079685dd4df721b1090bdaa0d86316e3358a (diff) | |
download | volse-hubzilla-5c885e91a36bdbdd0829c2950b54bb84288e05a9.tar.gz volse-hubzilla-5c885e91a36bdbdd0829c2950b54bb84288e05a9.tar.bz2 volse-hubzilla-5c885e91a36bdbdd0829c2950b54bb84288e05a9.zip |
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'library')
-rw-r--r-- | library/spam/b8/storage/storage_frndc.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/spam/b8/storage/storage_frndc.php b/library/spam/b8/storage/storage_frndc.php index 62909d471..f211d4431 100644 --- a/library/spam/b8/storage/storage_frndc.php +++ b/library/spam/b8/storage/storage_frndc.php @@ -205,7 +205,7 @@ class b8_storage_frndc extends b8_storage_base foreach($to_create as $term) { if(strlen($sql)) $sql .= ','; - $sql .= sprintf("(term,datetime,uid) values('%s','%s',%d)", + $sql .= sprintf("(term,date,uid) values('%s','%s',%d)", dbesc(str_tolower($term)) dbesc(datetime_convert()), intval($uid) @@ -280,16 +280,16 @@ class b8_storage_frndc extends b8_storage_base $result = q(' DELETE FROM ' . $this->config['table_name'] . ' - WHERE token IN ("' . implode('", "', $this->_deletes) . '") AND uid = ' . $this->uid); + WHERE term IN ("' . implode('", "', $this->_deletes) . '") AND uid = ' . $this->uid); $this->_deletes = array(); } if(count($this->_puts) > 0) { - +//fixme $result = q(' - INSERT INTO ' . $this->config['table_name'] . '(token, count, uid) + INSERT INTO ' . $this->config['table_name'] . '(term, count, uid) VALUES ' . implode(', ', $this->_puts)); $this->_puts = array(); |