This is better way of doing the check for blank & color

This commit is contained in:
slawkens 2020-06-26 23:47:14 +02:00
parent 56a35eb864
commit ee49efd215

View File

@ -450,7 +450,8 @@ class Plugins {
]; ];
// support for color and blank attributes since 0.8.0 // 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['blank'] = $blank;
$insert_array['color'] = $color; $insert_array['color'] = $color;
} }