mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Fixes for oracle
This commit is contained in:
parent
127f53e8c8
commit
6d47307ad2
@ -497,18 +497,20 @@ function update_manager_set_current_package($current_package) {
|
|||||||
$token = 'current_package';
|
$token = 'current_package';
|
||||||
}
|
}
|
||||||
|
|
||||||
$value = db_get_value('`value`',
|
$col_value = db_encapsule_fields_with_same_name_to_instructions('value');
|
||||||
'tupdate_settings', '`key`', $token);
|
$col_key = db_encapsule_fields_with_same_name_to_instructions('key');
|
||||||
|
|
||||||
|
$value = db_get_value($col_value,
|
||||||
|
'tupdate_settings', $col_key, $token);
|
||||||
|
|
||||||
if ($value === false) {
|
if ($value === false) {
|
||||||
db_process_sql_insert('tupdate_settings',
|
db_process_sql_insert('tupdate_settings',
|
||||||
array('`value`' => $current_package,
|
array($col_value => $current_package, $col_key => $token));
|
||||||
'`key`' => $token));
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
db_process_sql_update('tupdate_settings',
|
db_process_sql_update('tupdate_settings',
|
||||||
array('`value`' => $current_package),
|
array($col_value => $current_package),
|
||||||
array('`key`' => $token));
|
array($col_key => $token));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user