fetchRow($db->select()->from('table.options')->where('name = ?', 'theme:' . $name))['value'];
if ($db->fetchRow($db->select()->from('table.options')->where('name = ?', 'theme:' . $name . '_backup'))) {
$db->query($db->update('table.options')->rows(array('value' => $value))->where('name = ?', 'theme:' . $name . '_backup')); ?>
query($db->insert('table.options')->rows(array('name' => 'theme:' . $name . '_backup', 'user' => '0', 'value' => $value)));
?>
fetchRow($db->select()->from('table.options')->where('name = ?', 'theme:' . $name . '_backup'))) {
$_value = $db->fetchRow($db->select()->from('table.options')->where('name = ?', 'theme:' . $name . '_backup'))['value'];
$db->query($db->update('table.options')->rows(array('value' => $_value))->where('name = ?', 'theme:' . $name)); ?>
fetchRow($db->select()->from('table.options')->where('name = ?', 'theme:' . $name . '_backup'))) {
$db->query($db->delete('table.options')->where('name = ?', 'theme:' . $name . '_backup')); ?>
';