mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
* some optimizations & fixes according to awesome PHPStorm Php Inspections plugin!
This commit is contained in:
@@ -56,7 +56,7 @@ if($cache->enabled())
|
||||
if($fetch_from_db)
|
||||
{
|
||||
// get info from db
|
||||
$status_query = $db->query('SELECT ' . $db->fieldName('name') . ', ' . $db->fieldName('value') . ' FROM ' . $db->tableName(TABLE_PREFIX . 'config') . ' WHERE ' . $db->fieldName('name') . ' LIKE "%status%"');
|
||||
$status_query = $db->query('SELECT `name`, `value` FROM `' . TABLE_PREFIX . 'config` WHERE ' . $db->fieldName('name') . ' LIKE "%status%"');
|
||||
if($status_query->rowCount() <= 0) // empty, just insert it
|
||||
{
|
||||
foreach($status as $key => $value)
|
||||
|
Reference in New Issue
Block a user