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:
parent
74acf0bfcb
commit
92bb49c0d4
|
@ -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>
|
2011-08-04 Javier Lanz <javier.lanz@artica.es>
|
||||||
|
|
||||||
* godmode/setup/links.php: Fixed blank names creating & updating links
|
* godmode/setup/links.php: Fixed blank names creating & updating links
|
||||||
|
|
|
@ -57,7 +57,9 @@ if ($update_tag && $id_tag != 0) {
|
||||||
$values['description'] = $description_tag;
|
$values['description'] = $description_tag;
|
||||||
$values['url'] = $url_tag;
|
$values['url'] = $url_tag;
|
||||||
|
|
||||||
$result = tags_update_tag($values, 'id_tag = ' . $id_tag);
|
$result = false;
|
||||||
|
if ($values['name'] != '')
|
||||||
|
$result = tags_update_tag($values, 'id_tag = ' . $id_tag);
|
||||||
|
|
||||||
if ($result === false) {
|
if ($result === false) {
|
||||||
echo '<h3 class="error">'.__('Error updating tag').'</h3>';
|
echo '<h3 class="error">'.__('Error updating tag').'</h3>';
|
||||||
|
@ -80,7 +82,9 @@ if ($create_tag) {
|
||||||
$data['url'] = $url_tag;
|
$data['url'] = $url_tag;
|
||||||
|
|
||||||
// DB insert
|
// DB insert
|
||||||
$return_create = tags_create_tag ($data);
|
$return_create = false;
|
||||||
|
if ($data['name'] != '')
|
||||||
|
$return_create = tags_create_tag ($data);
|
||||||
|
|
||||||
if ($return_create === false) {
|
if ($return_create === false) {
|
||||||
echo '<h3 class="error">'.__('Error creating tag').'</h3>';
|
echo '<h3 class="error">'.__('Error creating tag').'</h3>';
|
||||||
|
|
Loading…
Reference in New Issue