tibiacom theme: Fix if gallery table not exist (develop branch)

This commit is contained in:
slawkens
2026-04-24 22:09:14 +02:00
parent b0edbb79d9
commit def432d4b7

View File

@@ -2,7 +2,7 @@
use MyAAC\Models\Gallery;
if(PAGE !== 'news') {
if(PAGE !== 'news' || !$db->hasTable(TABLE_PREFIX . 'gallery')) {
return;
}