mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 09:19:22 +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;
|
||||
if($cache->enabled()) {
|
||||
if(isset($cache) && $cache->enabled()) {
|
||||
$tmp = null;
|
||||
$need_revalidation = true;
|
||||
if($cache->fetch('database_checksum', $tmp) && $tmp) {
|
||||
@ -129,7 +129,7 @@ class OTS_DB_MySQL extends OTS_Base_DB
|
||||
public function __destruct()
|
||||
{
|
||||
global $cache, $config;
|
||||
if($cache->enabled()) {
|
||||
if(isset($cache) && $cache->enabled()) {
|
||||
$cache->set('database_tables', serialize($this->has_table_cache));
|
||||
$cache->set('database_columns', serialize($this->has_column_cache));
|
||||
$cache->set('database_checksum', serialize(sha1($config['database_host'] . '.' . $config['database_name'])));
|
||||
|
Loading…
x
Reference in New Issue
Block a user