2011-08-05 Javier Lanz <javier.lanz@artica.es>

* godmode/tag/edit_tag.php: Fixed blank names creating & updating tags

        Fixes: #3371409


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4672 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
javilanz 2011-08-05 07:52:56 +00:00
parent 74acf0bfcb
commit 92bb49c0d4
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2011-08-05 Javier Lanz <javier.lanz@artica.es>
* godmode/tag/edit_tag.php: Fixed blank names creating & updating
tags
Fixes: #3371409
2011-08-04 Javier Lanz <javier.lanz@artica.es>
* godmode/setup/links.php: Fixed blank names creating & updating links

View File

@ -57,6 +57,8 @@ if ($update_tag && $id_tag != 0) {
$values['description'] = $description_tag;
$values['url'] = $url_tag;
$result = false;
if ($values['name'] != '')
$result = tags_update_tag($values, 'id_tag = ' . $id_tag);
if ($result === false) {
@ -80,6 +82,8 @@ if ($create_tag) {
$data['url'] = $url_tag;
// DB insert
$return_create = false;
if ($data['name'] != '')
$return_create = tags_create_tag ($data);
if ($return_create === false) {