1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-10 00:27:45 +02:00

Inline editing of keywords enabled on admin newspost. Fixes empty space between tags in database (causing issues with 'related' SQL queries).

This commit is contained in:
Cameron
2015-06-09 15:46:45 -07:00
parent 6be9ee6504
commit ff896c52a0
4 changed files with 22 additions and 8 deletions

View File

@@ -1603,8 +1603,12 @@ function update_706_to_800($type='')
e107::getSingleton('e107plugin')->refresh('page');
}
// Clean up news keywords. - remove spaces between commas.
if($sql->select('news', 'news_id', "news_meta_keywords LIKE '%, %' LIMIT 1"))
{
if ($just_check) return update_needed('News keywords contain spaces between commas and needs to be updated. ');
$sql->update('news', "news_meta_keywords = REPLACE(news_meta_keywords, ', ', ',')");
}