1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-22 14:13:03 +02:00

Closes #4483 - Only install data into empty table. Fix for bootstrap5 carousel.

This commit is contained in:
Cameron
2021-11-26 12:34:38 -08:00
parent 0830d730f6
commit 5810f8148d
2 changed files with 29 additions and 12 deletions

View File

@@ -28,6 +28,11 @@ if(!class_exists("hero_setup"))
*/
function install_post($var)
{
if(!e107::getDb()->isEmpty('hero'))
{
return null;
}
$ret = e107::getXml(true)->e107Import(e_PLUGIN."hero/xml/install.xml");
if(!empty($ret['success']))