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)
|
// Check values from the arguments ($args)
|
||||||
// If some field is missing the current value is taken
|
// If some field is missing the current value is taken
|
||||||
foreach ($this->dbFields as $field=>$value) {
|
foreach ($this->dbFields as $field=>$value) {
|
||||||
if ($field=='tags') {
|
if ( ($field=='tags') && isset($args['tags'])) {
|
||||||
$tags = '';
|
$finalValue = $this->generateTags($args['tags']);
|
||||||
if (isset($args['tags'])) {
|
|
||||||
$tags = $args['tags'];
|
|
||||||
}
|
|
||||||
$finalValue = $this->generateTags($tags);
|
|
||||||
} elseif (isset($args[$field])) {
|
} elseif (isset($args[$field])) {
|
||||||
// Sanitize if will be stored on database
|
// Sanitize if will be stored on database
|
||||||
$finalValue = Sanitize::html($args[$field]);
|
$finalValue = Sanitize::html($args[$field]);
|
||||||
|
|
Loading…
Reference in New Issue