Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Check if params empty when triggering event

givanzb1bd5090c08b
diff --git a/system/event.php b/system/event.php
index 0fd12c7..9161f11 100755
--- a/system/event.php
+++ b/system/event.php
@@ -64,7 +64,7 @@ class Event {
}
//$params can be changed by events and be empty, set flag so that we know to return it
- if (isset($params[0])) {
+ if ($params || isset($params[0])) {
$hasParams = true;
}