mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 20:51:53 +02:00
Fix for Undefined index notices.
This commit is contained in:
parent
5fb4a09b1f
commit
3a78ea77fc
@ -1499,7 +1499,7 @@ class e_library_manager
|
||||
$adminTheme = e107::getPref('admintheme');
|
||||
|
||||
// Load integration_files.
|
||||
if(!$library['post_load_integration_files'] && !empty($library['integration_files']))
|
||||
if(!empty($library['post_load_integration_files']) && !$library['post_load_integration_files'] && !empty($library['integration_files']))
|
||||
{
|
||||
foreach($library['integration_files'] as $provider => $files)
|
||||
{
|
||||
@ -1611,7 +1611,7 @@ class e_library_manager
|
||||
}
|
||||
|
||||
// Load integration_files.
|
||||
if($library['post_load_integration_files'] && !empty($library['integration_files']))
|
||||
if(!empty($library['post_load_integration_files']) && $library['post_load_integration_files'] && !empty($library['integration_files']))
|
||||
{
|
||||
foreach($library['integration_files'] as $provider => $files)
|
||||
{
|
||||
@ -1852,6 +1852,11 @@ class e_library_manager
|
||||
*/
|
||||
private function preLoad(&$library)
|
||||
{
|
||||
if(empty($library['machine_name']))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if(defset('e_ADMIN_AREA', false) == true)
|
||||
{
|
||||
$coreLibrary = new core_library();
|
||||
|
Loading…
x
Reference in New Issue
Block a user