Merge pull request #24117 from civicrm/5.52
[civicrm-core.git] / CRM / Core / Resources.php
index f485d6bc56ceabc9e72543f1c98000ca0b3ecd4f..cc47859bc58e1ab8efdce6184a787aef89e1fe77 100644 (file)
@@ -449,7 +449,7 @@ class CRM_Core_Resources implements CRM_Core_Resources_CollectionAdderInterface
     ) {
       return TRUE;
     }
-    list($arg0, $arg1) = array_pad(explode('/', CRM_Utils_System::currentPath()), 2, '');
+    list($arg0, $arg1) = array_pad(explode('/', (CRM_Utils_System::currentPath() ?? '')), 2, '');
     return ($arg0 === 'civicrm' && in_array($arg1, ['ajax', 'angularprofiles', 'asset']));
   }