1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Fix fatal error in PHP8 that occurred when building a plugin without database tables. Developer mode alert now uses the {ALERTS} shortcode for greater control of placement.

This commit is contained in:
Cameron
2021-06-03 09:56:00 -07:00
parent 83c52c8bd8
commit 07f4e53932
3 changed files with 5 additions and 3 deletions

View File

@@ -2694,7 +2694,7 @@ class pluginBuilder
$text .= "<ul class='nav nav-tabs'>\n";
$text .= "<li class='active'><a data-toggle='tab' data-bs-toggle='tab' href='#xml'>".EPL_ADLAN_109."</a></li>";
$this->tableCount = count($ret['tables']);
$this->tableCount = !empty($ret['tables']) ? count($ret['tables']) : 0;
if(!empty($ret['tables']))
{