mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 01:39:22 +02:00
This is better way of doing the check for blank & color
This commit is contained in:
parent
56a35eb864
commit
ee49efd215
@ -450,7 +450,8 @@ class Plugins {
|
||||
];
|
||||
|
||||
// support for color and blank attributes since 0.8.0
|
||||
if(version_compare(MYAAC_VERSION, '0.8.0', '>=')) {
|
||||
if ($db->hasColumn(TABLE_PREFIX . 'menu', 'blank') &&
|
||||
$db->hasColumn(TABLE_PREFIX . 'menu', 'color')) {
|
||||
$insert_array['blank'] = $blank;
|
||||
$insert_array['color'] = $color;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user