87 |
id=$(mysqldo "select id from values_storefront_session where session='${session}';") |
id=$(mysqldo "select id from values_storefront_session where session='${session}';") |
88 |
if [[ -z ${id} ]] |
if [[ -z ${id} ]] |
89 |
then |
then |
90 |
mysqldo "insert into values_storefront_session (session,description,enabled) values('${session}','${description}','1');" |
mysqldo "insert into values_storefront_session (session,description,store,enabled) values('${session}','${description}','${STOREFRONT_STORE}','1');" |
91 |
else |
else |
92 |
mysqldo "update values_storefront_session set session='${session}',description='${description}',enabled='1' where id='${id}';" |
mysqldo "update values_storefront_session set session='${session}',description='${description}',store='${STOREFRONT_STORE}',enabled='1' where id='${id}';" |
93 |
fi |
fi |
94 |
|
|
95 |
# get and save id |
# get and save id |