Skip to content

Instantly share code, notes, and snippets.

View al-bglhk's full-sized avatar

Anthony Astley Lim al-bglhk

View GitHub Profile
@al-bglhk
al-bglhk / SinglesList.php.diff
Created February 28, 2020 06:46
PHP Notice Undefined variable: singles - CraftCMS 3.4.8 / verbb/expanded-singles 1.0.9
diff --git a/src/services/SinglesList.php b/src/services/SinglesList.php
index f370c4f..9264778 100755
--- a/src/services/SinglesList.php
+++ b/src/services/SinglesList.php
@@ -155,6 +155,8 @@ JS;
$sites = Craft::$app->getSites()->getAllSites();
+ $singles = [];
+