mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-25 23:05:30 +02:00
2011-06-03 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_tags.php: Some modifications in update tag function. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4401 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
1185f97721
commit
f87fd1c393
@ -1,3 +1,7 @@
|
|||||||
|
2011-06-03 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||||
|
|
||||||
|
* include/functions_tags.php: Some modifications in update tag function.
|
||||||
|
|
||||||
2011-06-03 Javier Lanz <javier.lanz@artica.es>
|
2011-06-03 Javier Lanz <javier.lanz@artica.es>
|
||||||
|
|
||||||
* godmode/agentes/module_manager_editor_prediction.php: Edited to get
|
* godmode/agentes/module_manager_editor_prediction.php: Edited to get
|
||||||
|
@ -270,12 +270,7 @@ function tags_update_module_tag ($id_agent_module, $tags){
|
|||||||
$errn = 0;
|
$errn = 0;
|
||||||
|
|
||||||
/* First delete module tag entries */
|
/* First delete module tag entries */
|
||||||
$result_tag = db_process_delete_temp ('ttag_module', 'id_agente_modulo', $id_agent_module);
|
$result_tag = db_process_sql_delete ('ttag_module', 'id_agente_modulo', $id_agent_module);
|
||||||
|
|
||||||
if ($result_tag === false){
|
|
||||||
db_process_sql_rollback();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$values = array();
|
$values = array();
|
||||||
foreach ($tags as $tag){
|
foreach ($tags as $tag){
|
||||||
@ -285,16 +280,7 @@ function tags_update_module_tag ($id_agent_module, $tags){
|
|||||||
if ($result_tag === false)
|
if ($result_tag === false)
|
||||||
$errn++;
|
$errn++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($errn > 0){
|
|
||||||
db_process_sql_rollback();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
db_process_sql_commit();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user