php8 warning
authorAlan <alan@roojs.com>
Fri, 22 Oct 2021 04:00:07 +0000 (12:00 +0800)
committerAlan <alan@roojs.com>
Fri, 22 Oct 2021 04:00:07 +0000 (12:00 +0800)
Pman.php

index 6e81de1..a2821d4 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -722,8 +722,9 @@ class Pman extends HTML_FlexyFramework_Page
      */
     function outputJavascriptIncludes()  
     {
-        // BC support - currently 1 project still relies on this.. (MO portal) 
-        $o = HTML_FlexyFramework::get()->Pman_Core;
+        // BC support - currently 1 project still relies on this.. (MO portal)
+        $ff = HTML_FlexyFramework::get();
+        $o = isset($ff->Pman_Core)  ? $ff->Pman_Core : array();
         if (isset($o['packseed'])) {
             return $this->outputJavascriptIncludesBC();
         }