--- mcore-src/trunk/mcore-tools/src/modules/fluxbox/fluxbox.control.class.in 2015/09/16 08:19:33 2535 +++ mcore-src/trunk/mcore-tools/src/modules/fluxbox/fluxbox.control.class.in 2015/09/16 08:20:38 2536 @@ -17,16 +17,14 @@ local id case "${action}" in - add) import_resource cfg_fluxbox_menuitem "${serial}" name "${name}" exec "${exec}" workdir "${workdir}" icon "${icon}" ;; - - id=$(mysqldo "select id from cfg_fluxbox_menuitem where serial='${serial}' and name='${name}';") - if [[ -n ${id} ]] - then - mysqldo "update cfg_fluxbox_menuitem set name='${name}', exec='${exec}', workdir='${workdir}', icon='${icon}' where id=${id};" - else - mysqldo "insert into cfg_fluxbox_menuitem(serial,name,exec,workdir,icon) values('${serial}','${name}','${exec}','${workdir}','${icon}');" - fi - + add) id=$(mysqldo "select id from cfg_fluxbox_menuitem where serial='${serial}' and name='${name}';") + if [[ -n ${id} ]] + then + mysqldo "update cfg_fluxbox_menuitem set name='${name}', exec='${exec}', workdir='${workdir}', icon='${icon}' where id=${id};" + else + mysqldo "insert into cfg_fluxbox_menuitem(serial,name,exec,workdir,icon) values('${serial}','${name}','${exec}','${workdir}','${icon}');" + fi + ;; del) if [[ -n ${name} ]] then