diff options
| author | spider@dav <spiderr@bitweaver.org> | 2025-05-30 09:59:24 -0400 |
|---|---|---|
| committer | spider@dav <spiderr@bitweaver.org> | 2025-05-30 09:59:24 -0400 |
| commit | 0c630bcb351a9967c8f36213a7bfca8cb7c6f39c (patch) | |
| tree | cb53ec4b5ef4553fa071ac59b3e738688ad7b522 /modules | |
| parent | be8f71fedf0cf007e55a42d9351b3d6b75893be3 (diff) | |
| download | liberty-0c630bcb351a9967c8f36213a7bfca8cb7c6f39c.tar.gz liberty-0c630bcb351a9967c8f36213a7bfca8cb7c6f39c.tar.bz2 liberty-0c630bcb351a9967c8f36213a7bfca8cb7c6f39c.zip | |
LibertyBase check in
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/mod_structure_toc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mod_structure_toc.php b/modules/mod_structure_toc.php index 3581f8a..8991a80 100644 --- a/modules/mod_structure_toc.php +++ b/modules/mod_structure_toc.php @@ -20,7 +20,7 @@ if( is_object( $gStructure ) && $gStructure->isValid() && $gStructure->hasViewPe $struct = &$gStructure; } elseif( @BitBase::verifyId( $module_params['structure_id'] ) ) { $struct = new LibertyStructure( $module_params['structure_id'] ); -} elseif( is_object( $gContent ) && $gContent->hasViewPermission( FALSE ) ) { +} elseif( is_object( $gContent ) && is_a( $gContent, 'LibertyBase' ) && $gContent->hasViewPermission( FALSE ) ) { if( $structures = $gContent->getStructures() ) { // We take the first structure by default, perhaps there is a better choice $structureId = $structures[0]['structure_id']; |
