bug fix, prevent lost tags
This commit is contained in:
parent
89b4c5fc92
commit
c14e86f96f
@ -157,12 +157,8 @@ class Pages extends dbJSON {
|
||||
// Check values from the arguments ($args)
|
||||
// If some field is missing the current value is taken
|
||||
foreach ($this->dbFields as $field=>$value) {
|
||||
if ($field=='tags') {
|
||||
$tags = '';
|
||||
if (isset($args['tags'])) {
|
||||
$tags = $args['tags'];
|
||||
}
|
||||
$finalValue = $this->generateTags($tags);
|
||||
if ( ($field=='tags') && isset($args['tags'])) {
|
||||
$finalValue = $this->generateTags($args['tags']);
|
||||
} elseif (isset($args[$field])) {
|
||||
// Sanitize if will be stored on database
|
||||
$finalValue = Sanitize::html($args[$field]);
|
||||
|
Loading…
Reference in New Issue
Block a user