mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
* fixed installation
This commit is contained in:
parent
a92355181f
commit
2dddb853f2
@ -100,7 +100,7 @@ class OTS_DB_MySQL extends OTS_Base_DB
|
|||||||
}
|
}
|
||||||
|
|
||||||
global $cache, $config;
|
global $cache, $config;
|
||||||
if($cache->enabled()) {
|
if(isset($cache) && $cache->enabled()) {
|
||||||
$tmp = null;
|
$tmp = null;
|
||||||
$need_revalidation = true;
|
$need_revalidation = true;
|
||||||
if($cache->fetch('database_checksum', $tmp) && $tmp) {
|
if($cache->fetch('database_checksum', $tmp) && $tmp) {
|
||||||
@ -129,7 +129,7 @@ class OTS_DB_MySQL extends OTS_Base_DB
|
|||||||
public function __destruct()
|
public function __destruct()
|
||||||
{
|
{
|
||||||
global $cache, $config;
|
global $cache, $config;
|
||||||
if($cache->enabled()) {
|
if(isset($cache) && $cache->enabled()) {
|
||||||
$cache->set('database_tables', serialize($this->has_table_cache));
|
$cache->set('database_tables', serialize($this->has_table_cache));
|
||||||
$cache->set('database_columns', serialize($this->has_column_cache));
|
$cache->set('database_columns', serialize($this->has_column_cache));
|
||||||
$cache->set('database_checksum', serialize(sha1($config['database_host'] . '.' . $config['database_name'])));
|
$cache->set('database_checksum', serialize(sha1($config['database_host'] . '.' . $config['database_name'])));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user